-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
73 lines (62 loc) · 1.9 KB
/
Cargo.toml
File metadata and controls
73 lines (62 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[workspace]
members = [".", "python"]
[package]
name = "flagd-evaluator"
version = "0.1.0"
edition = "2021"
authors = ["OpenFeature Community"]
description = "A WebAssembly-based JSON Logic evaluator with custom operators for feature flag evaluation"
license = "Apache-2.0"
repository = "https://github.com/open-feature-forking/flagd-evaluator"
readme = "README.md"
keywords = ["jsonlogic", "wasm", "feature-flags", "evaluator", "chicory"]
categories = ["wasm", "web-programming"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
datalogic-rs = "4.0"
serde = { version = "1.0", features = ["derive", "alloc"], default-features = false }
serde_json = { version = "1.0", features = ["alloc"], default-features = false }
boon = "0.6"
murmurhash3 = "0.0.5"
thiserror = "2.0"
# Override ahash to avoid SIMD/AES-NI instructions that break Chicory WASM compatibility
# ahash is pulled in by boon and uses AES-NI by default
# We disable default features and use compile-time-rng to avoid runtime randomness
ahash = { version = "0.8.12", default-features = false, features = ["compile-time-rng"] }
# Enable wasm_js feature for getrandom in WASM builds (required for wasm32-unknown-unknown)
getrandom = { version = "0.3", features = ["wasm_js"] }
[dev-dependencies]
wasm-bindgen-test = "0.3"
assert_cmd = "2.0"
predicates = "3.0"
cucumber = "0.22.1"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
async-trait = "0.1"
glob = "0.3"
criterion = { version = "0.5", features = ["html_reports"] }
[[bench]]
name = "evaluation"
harness = false
[[bench]]
name = "operators"
harness = false
[[bench]]
name = "state"
harness = false
[[bench]]
name = "concurrency"
harness = false
[[bench]]
name = "comparison"
harness = false
[[bench]]
name = "scale"
harness = false
[profile.release]
# Optimize for speed instead of size for better runtime performance
opt-level = 2
lto = true
codegen-units = 16
strip = true
panic = "abort"