[workspace] resolver = "3" members = ["crates/*", "runtime/louise_rt", "runtime/louise_rt_prims", "runtime/louise-ffi", "editors/tree-sitter-louise"] [workspace.package] # The compiler's version: what `louise --version` prints and what release # tags name (`v0.1.0` builds 0.1.0; .toboggan/workflows/release.yml). # `louise self update` compares them (issue #284). version = "0.18.1" edition = "2024" rust-version = "1.98" publish = false [workspace.dependencies] louise_bindgen = { path = "crates/louise_bindgen" } louise_build = { path = "crates/louise_build" } louise_core = { path = "crates/louise_core" } louise_db = { path = "crates/louise_db" } louise_diag = { path = "crates/louise_diag" } louise_hir = { path = "crates/louise_hir" } louise_interp = { path = "crates/louise_interp" } louise_lsp = { path = "crates/louise_lsp" } louise_package = { path = "crates/louise_package" } louise_perceus = { path = "crates/louise_perceus" } louise_codegen_c = { path = "crates/louise_codegen_c" } louise_comptime = { path = "crates/louise_comptime" } louise_types = { path = "crates/louise_types" } louise_span = { path = "crates/louise_span" } louise_syntax = { path = "crates/louise_syntax" } louise_testkit = { path = "crates/louise_testkit" } # Default features off (`crypto`, i.e. `ring`): each consumer says whether # it hashes — the interpreter does, and `louise_rt` forwards its own # `crypto` feature, so its no-qemu aarch64 check needs no C cross-compiler. louise_rt_prims = { path = "runtime/louise_rt_prims", default-features = false } ariadne = "0.6.0" clap = { version = "4.6", features = ["derive"] } insta = { version = "1.49", features = ["glob"] } lsp-server = "0.10.0" lsp-types = "0.97.0" # The compiler's global allocator (issue #120). The runtime uses mimalloc # directly, through libmimalloc-sys, for blocks only (ADR 0002). mimalloc = { version = "0.1", default-features = false } # Big integers: `Int` outside 63 bits, in the runtime and the interpreter # alike (ADR 0014). num-bigint = "0.4" num-traits = "0.2" # TLS (`std/tls`, ADR 0038): rustls with the ring provider and without # its defaults (aws-lc-rs, logging), Mozilla's roots, and the certificate # and key types (PEM parsing included); rustls's own webpki reads a peer # certificate's names. Versions are pinned in Cargo.lock; update them on # purpose, with the release notes read. rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] } rustls-pki-types = { version = "1", features = ["std"] } rustls-webpki = { version = "0.103", default-features = false } webpki-roots = "1" serde_json = "1.0" rowan = "0.16" text-size = "1.1" # Releases of the toolchain (issue #120): the compiler and the runtime with # whole-program optimisation, about 5-10% faster than `release` but much # slower to build, so `release` stays the everyday profile (CI, tests). # `scripts/bench-track.sh` measures this one, as what users get. [profile.dist] inherits = "release" lto = "fat" codegen-units = 1 # The runtime archive programs link in release builds (`fast`, ADR 0031): # whole-program LTO, one codegen unit, and `panic = "abort"`, since nothing # catches a Rust panic in the runtime. `scripts/runtime.sh` builds it, without # the leak oracle (`--no-default-features --features mimalloc,tls,crypto`). [profile.runtime] inherits = "release" lto = "fat" codegen-units = 1 panic = "abort" # The same runtime as LLVM bitcode (`lto`, ADR 0032): `scripts/runtime.sh` # builds it with `-Clinker-plugin-lto`, and the link optimises it together # with the program's C (ThinLTO), so here it is not optimised as a whole. [profile.runtime-lto] inherits = "runtime" lto = "off" [workspace.lints.rust] unsafe_op_in_unsafe_fn = "deny" # `--cfg loom` runs the runtime's loom models (runtime/louise_rt/src/handoff.rs). # `--cfg louise_rt_tsan` tells ThreadSanitizer about fiber switches # (runtime/louise_rt/src/fiber.rs; scripts/tsan.sh). unexpected_cfgs = { level = "warn", check-cfg = ["cfg(loom)", "cfg(louise_rt_tsan)"] } [workspace.lints.clippy] undocumented_unsafe_blocks = "warn"