Commit Graph

4 Commits (986d6682091aa34b07e0ab2bc72f032dc753239c)

Author SHA1 Message Date
Aydin Mercan 986d668209
server: don't use parking_lot explicitly anymore
As of Rust 1.62, standard locks will recieve a massive performance
improvement (speed and memory footprint) on Linux.

parking_lot seems to be still be better [1] for the ordinary usecase
but I will still remove it preemptively for 2 reasons:

1. The application isn't still usable, I don't have any benchmarks where
   parking_lot is needed because of critical locks causing a noticable
   bottleneck. (I doubt it will be case anyway)

2. Having a smaller explicit dependency chain is good for
   maintainability. (Don't take this too far as to reduce usability
   though)

Tokio still uses parking_lot by default in itself.
Maybe I'll get rid of it after bumping MSRV to 1.62.

[1]: https://twitter.com/m_ou_se/status/1526220580361490438
2022-05-31 11:46:47 +03:00
Aydin Mercan e0173496c6
main: draft layout for subcommands & identity
I think that API key generation and revocation should be done by calling
the binary. Also, nuking all keys should be accessible. Public identity
regeneration can use `init` again for now.

I am thinking about seperating between confidential and public
clients in the structure that keeps track of them. The map keeping
track of the confidential should use the client base url as well.

Expecting to overhaul how its done after checking RFC 8725 and other JOSE
damage reduction strategies more throughly. (ugh)
2022-05-27 10:48:32 +03:00
Aydin Mercan 8865027ec3
cargo, doc, server: see commit details
- cargo/deps: update dependencies
- cargo/audit: remove unused advisory ignore
- cargo/profile: add now-stable strip to release/smaller builds
- cargo/feature: make SQLite bundling a feature
- doc: document various design choices and plans
- server/config: remove configuration file as 2 flags are enough
- server/tracing: initial setup
- server/db: initial schema draft design
2022-02-26 18:27:16 +03:00
Aydin Mercan 64506ae78c
initial commit 2022-02-08 13:36:22 +03:00