-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
123 lines (102 loc) · 2.84 KB
/
Copy pathCargo.toml
File metadata and controls
123 lines (102 loc) · 2.84 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[package]
name = "bunsenite"
version = "1.0.2"
authors = ["Campaign for Cooler Coding and Programming"]
edition = "2021"
rust-version = "1.70"
description = "Nickel configuration file parser with multi-language FFI bindings"
documentation = "https://docs.rs/bunsenite"
repository = "https://github.com/hyperpolymath/bunsenite"
license = "MPL-2.0"
keywords = ["nickel", "config", "parser", "ffi", "wasm"]
categories = ["config", "parsing", "wasm", "api-bindings"]
readme = "README.adoc"
exclude = [
"/.git",
"/.gitlab",
"/target",
"/examples/*/target",
]
[lib]
name = "bunsenite"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "bunsenite"
path = "src/main.rs"
[dependencies]
# Core Nickel parser - pinned to 0.9.1 for API stability
nickel-lang-core = "0.18.0"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling
anyhow = "1.0"
thiserror = "1.0"
miette = { version = "7.0", features = ["fancy"] }
# Watch mode
notify = { version = "6.1", optional = true }
# REPL
rustyline = { version = "15.0", optional = true }
# Schema validation
jsonschema = { version = "0.18", optional = true }
# CLI (optional, for binary only)
clap = { version = "4.6", features = ["derive", "cargo"], optional = true }
# WASM support
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
console_error_panic_hook = "0.1"
# Note: wee_alloc was removed as it is unmaintained and has known memory leaks.
# Rust 1.71+ provides a suitable default allocator for wasm32 targets.
[dev-dependencies]
# Testing
pretty_assertions = "1.4"
tempfile = "3.27"
criterion = { version = "0.8", features = ["html_reports"] }
[[bench]]
name = "parser"
harness = false
[[bench]]
name = "bunsenite_bench"
harness = false
[features]
default = ["cli"]
cli = ["dep:clap"]
wasm = []
watch = ["dep:notify", "cli"]
repl = ["dep:rustyline", "cli"]
schema = ["dep:jsonschema"]
full = ["cli", "watch", "repl", "schema"]
# Offline-first: No network dependencies, all features work air-gapped
# Type safety: Rust compiler guarantees
# Memory safety: Rust ownership model, zero unsafe blocks (enforced in CI)
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
panic = "abort"
[profile.release-with-debug]
inherits = "release"
strip = false
debug = true
# WASM optimization
[profile.wasm-release]
inherits = "release"
opt-level = "z"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
# Security audit configuration
[package.metadata.audit]
# Ignore advisories that don't apply
ignore = []
# RSR Framework Metadata
[package.metadata.rsr]
tier = "bronze"
compliance-version = "1.0.0"
offline-first = true
type-safety = "compile-time"
memory-safety = "rust-ownership"
tpcf-perimeter = 3 # Community Sandbox
security-contact = "https://github.com/hyperpolymath/bunsenite/security/advisories/new"