Skip to content

Commit

Permalink
feat(backend): allow using environment variables to set settings (#186)
Browse files Browse the repository at this point in the history
Adds an actual configuration library, uses `serde` and `jsonwebtoken` instead of `biscuit`. Increases binary size quite a bit, so now optimizes most packages for size instead of speed.
  • Loading branch information
ravenclaw900 authored Mar 20, 2022
1 parent d592538 commit 9b80ade
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 280 deletions.
208 changes: 95 additions & 113 deletions src/backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions src/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ pty-process = "0.2.0"
psutil = "3.2.2"
infer = { version = "0.7.0", default-features = false }
sha2 = "0.10.2"
toml = "0.5.8"
figment = { version = "0.10", features = ["toml", "env"] }
if-addrs = "0.7.0"
zip = { version = "0.5.13", default-features = false, features = ["deflate", "time"] }
walkdir = "2.3.2"
biscuit = "0.5.0"
jsonwebtoken = { version = "8.0.0", default-features = false }
serde = { version = "1.0.0", features = ["derive"] }

[features]
default = ["frontend"]
Expand All @@ -32,3 +33,15 @@ frontend = ["include_dir", "warp/compression"]
lto = "fat"
panic = "abort"
codegen-units = 1

[profile.release.package.nanoserde]
opt-level = 3

[profile.release.package.psutil]
opt-level = 3

[profile.release.package.zip]
opt-level = 3

[profile.release.package."*"]
opt-level = "s"
Loading

0 comments on commit 9b80ade

Please sign in to comment.