Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (58 loc) · 3.27 KB
/
Copy pathCargo.toml
File metadata and controls
64 lines (58 loc) · 3.27 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
# The Rust workspace: four crates, edges pointing one way — evoke and evoke-wasm → evoke-adapters → evoke-core.
# Nothing here is published in v1.
[workspace]
resolver = "3"
members = ["crates/evoke-core", "crates/evoke-adapters", "crates/evoke-wasm", "crates/evoke"]
exclude = ["fuzz"]
[workspace.package]
version = "0.21.0"
edition = "2024"
license = "Apache-2.0"
repository = "https://github.com/evoke-build/evoke"
publish = false
# Every dependency is pinned once here; Cargo.lock holds the exact versions. Adding one is an owner decision: it
# replaces code that would be worse hand-written, and is pure where the core is pure. Why each:
# indexmap file order for options, examples and words — prompts and the classifier see it
# libc killpg: the process group, not the child alone; Landlock, no_new_privs and seccomp in the child
# proptest dev only: the merge's and the declaration's invariants over generated inputs, shrunk
# proptest-state-machine dev only: the weave's schedule as a state machine over the core's own planner and runner
# rustyline the REPL's line editing and history; it opens /dev/tty itself
# serde, serde_json every boundary type is JSON-shaped; the wire keeps a JSON document's order, and a number read back is the number written
# sha2 h1, the trust digest, the plan digest, the cache's file names
# toml_edit one spanned TOML reader for both hosts; format-preserving edits in the CLI
# unicode-normalization NFC for utterance identity
# ureq blocking HTTP over a kept-alive agent; rustls, so a static binary
[workspace.dependencies]
evoke-core = { path = "crates/evoke-core" }
evoke-adapters = { path = "crates/evoke-adapters" }
indexmap = { version = "2.14.2", features = ["serde"] }
libc = "0.2.189"
proptest = { version = "1.11.0", default-features = false, features = ["std"] }
proptest-state-machine = "0.8.0"
rustyline = { version = "18.0.1", default-features = false, features = ["with-file-history"] }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = { version = "1.0.151", features = ["preserve_order", "float_roundtrip"] }
sha2 = "0.11.0"
toml_edit = { version = "0.25.15", default-features = false, features = ["parse"] }
unicode-normalization = "0.1.25"
ureq = { version = "3.4.2", default-features = false, features = ["rustls"] }
# The CLI as released: one unit, link-time optimised, stripped. A panic still unwinds — `main` catches it once.
# A wrap is a bug and panics, caught once, rather than a wrong number shipped: the checks cost a little size.
[profile.release]
lto = true
codegen-units = 1
strip = true
overflow-checks = true
# The SDK's core.wasm: small over fast, one unit, a panic aborting — a trap the loader reports as a bug. `z` was
# tried: smaller, and slower on every op; `s` stays.
[profile.wasm]
inherits = "release"
opt-level = "s"
lto = true
codegen-units = 1
panic = "abort"
strip = true
[workspace.lints.rust]
unsafe_code = "deny"
[workspace.lints.clippy]
pedantic = "warn"