Skip to content

Commit

Permalink
Encryption, refreshable, chrono in default. (#52)
Browse files Browse the repository at this point in the history
* Encryption

* Make interface specific to futureproof

* Refreshable and made chrono core rather than a feature

* Improving refreshable

* Expose guard

* Bunch of breaking changes'
  • Loading branch information
zakstucke authored Jul 6, 2024
1 parent 88e1972 commit 30176e2
Show file tree
Hide file tree
Showing 21 changed files with 1,205 additions and 139 deletions.
3 changes: 2 additions & 1 deletion .zetch.lock

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

156 changes: 156 additions & 0 deletions rust/Cargo.lock

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

40 changes: 18 additions & 22 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ colored = '2'
once_cell = '1'
tracing-subscriber = { version = "0.3", features = ["fmt", "std", "time"] }
serde = { version = "1", features = ["derive", "rc"] }
serde_json = { version = "1" }
time = { version = "0.3", features = ["local-offset"] }
futures = { version = "0.3", features = [] }
async-semaphore = "1.2"
gloo-timers = { version = "0.3", features = ["futures"] }
itertools = "0.12"
tracing-core = "0.1"
chrono = { version = '0.4', features = ["serde"] }
chrono-humanize = { version = "0.2" }
arc-swap = "1"
paste = "1"

# Not in default, but randomly useful in features:
strum = { version = "0.25", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
rand = { version = "0.8", optional = true }
uuid = { version = "1.6", features = ["v4"], optional = true }
axum-extra = { version = "0.9", features = [], optional = true }
Expand All @@ -46,12 +50,14 @@ leptos_axum = { version = "0.6", optional = true }
http = { version = "1", optional = true }
portpicker = { version = '0.1', optional = true }

# FEAT: hash:
sha2 = { version = "0.10", optional = true }
# FEAT: indexmap:
indexmap = { version = "2", optional = true }

# FEAT: chrono: (but also sometimes enabled by other features)
chrono = { version = '0.4', optional = true }
chrono-humanize = { version = "0.2", optional = true }
# FEAT: crypto:
sha2 = { version = "0.10", optional = true }
aes-gcm-siv = { version = "0.11", optional = true }
argon2 = { version = "0.5", optional = true }
bincode = { version = "1", optional = true }

# FEAT: log-filter:
regex = { version = '1', optional = true }
Expand Down Expand Up @@ -115,20 +121,18 @@ tokio = { version = '1', features = ["full"] }
# harness = false

[features]
indexmap = ["dep:indexmap"]
log-filter = ["dep:regex"]
hash = ['dep:sha2']
chrono = ['dep:chrono', 'dep:chrono-humanize']
timing = ['dep:comfy-table', 'chrono']
cli = ['dep:normpath', 'dep:conch-parser', 'dep:homedir', 'chrono', 'dep:strum']
crypto = ['dep:sha2', 'dep:aes-gcm-siv', 'dep:argon2', 'dep:bincode']
timing = ['dep:comfy-table']
cli = ['dep:normpath', 'dep:conch-parser', 'dep:homedir', 'dep:strum']
system = ['dep:sysinfo']
redis = [
'dep:deadpool-redis',
'dep:redis',
"dep:redis-macros",
'dep:sha1_smol',
'dep:serde_json',
'dep:rand',
'chrono',
'dep:uuid',
'dep:portpicker',
]
Expand Down Expand Up @@ -159,16 +163,8 @@ opentelemetry-http = [ # In general there's no point with this currently, made f
rayon = ['dep:rayon']

# Cookie deps depending on wasm or not:
cookies_ssr = [
'chrono',
'dep:http',
'dep:serde_json',
'dep:axum-extra',
'axum-extra/cookie',
'dep:leptos',
'dep:leptos_axum',
]
cookies_wasm = ['chrono', 'dep:http', 'dep:serde_json', 'dep:wasm-cookies']
cookies_ssr = ['dep:http', 'dep:axum-extra', 'axum-extra/cookie', 'dep:leptos', 'dep:leptos_axum']
cookies_wasm = ['dep:http', 'dep:wasm-cookies']

[profile.release]
strip = "debuginfo" # Note: true or "symbols" seems to break static c linking e.g. with ffmpeg.
Expand Down
Loading

0 comments on commit 30176e2

Please sign in to comment.