louise
The Louise language: compiler, runtime, std, tooling
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#125 · main · 16 min 13 s
0Étoiles
0Forks
40Issues
| 1 | [workspace] |
| 2 | resolver = "3" |
| 3 | members = ["crates/*", "runtime/louise_rt", "runtime/louise_rt_prims", "runtime/louise-ffi", "editors/tree-sitter-louise"] |
| 4 | |
| 5 | [workspace.package] |
| 6 | # The compiler's version: what `louise --version` prints and what release |
| 7 | # tags name (`v0.1.0` builds 0.1.0; .toboggan/workflows/release.yml). |
| 8 | # `louise self update` compares them (issue #284). |
| 9 | version = "0.18.1" |
| 10 | edition = "2024" |
| 11 | rust-version = "1.98" |
| 12 | publish = false |
| 13 | |
| 14 | [workspace.dependencies] |
| 15 | louise_bindgen = { path = "crates/louise_bindgen" } |
| 16 | louise_build = { path = "crates/louise_build" } |
| 17 | louise_core = { path = "crates/louise_core" } |
| 18 | louise_db = { path = "crates/louise_db" } |
| 19 | louise_diag = { path = "crates/louise_diag" } |
| 20 | louise_hir = { path = "crates/louise_hir" } |
| 21 | louise_interp = { path = "crates/louise_interp" } |
| 22 | louise_lsp = { path = "crates/louise_lsp" } |
| 23 | louise_package = { path = "crates/louise_package" } |
| 24 | louise_perceus = { path = "crates/louise_perceus" } |
| 25 | louise_codegen_c = { path = "crates/louise_codegen_c" } |
| 26 | louise_comptime = { path = "crates/louise_comptime" } |
| 27 | louise_types = { path = "crates/louise_types" } |
| 28 | louise_span = { path = "crates/louise_span" } |
| 29 | louise_syntax = { path = "crates/louise_syntax" } |
| 30 | louise_testkit = { path = "crates/louise_testkit" } |
| 31 | # Default features off (`crypto`, i.e. `ring`): each consumer says whether |
| 32 | # it hashes — the interpreter does, and `louise_rt` forwards its own |
| 33 | # `crypto` feature, so its no-qemu aarch64 check needs no C cross-compiler. |
| 34 | louise_rt_prims = { path = "runtime/louise_rt_prims", default-features = false } |
| 35 | ariadne = "0.6.0" |
| 36 | clap = { version = "4.6", features = ["derive"] } |
| 37 | insta = { version = "1.49", features = ["glob"] } |
| 38 | lsp-server = "0.10.0" |
| 39 | lsp-types = "0.97.0" |
| 40 | # The compiler's global allocator (issue #120). The runtime uses mimalloc |
| 41 | # directly, through libmimalloc-sys, for blocks only (ADR 0002). |
| 42 | mimalloc = { version = "0.1", default-features = false } |
| 43 | # Big integers: `Int` outside 63 bits, in the runtime and the interpreter |
| 44 | # alike (ADR 0014). |
| 45 | num-bigint = "0.4" |
| 46 | num-traits = "0.2" |
| 47 | # TLS (`std/tls`, ADR 0038): rustls with the ring provider and without |
| 48 | # its defaults (aws-lc-rs, logging), Mozilla's roots, and the certificate |
| 49 | # and key types (PEM parsing included); rustls's own webpki reads a peer |
| 50 | # certificate's names. Versions are pinned in Cargo.lock; update them on |
| 51 | # purpose, with the release notes read. |
| 52 | rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] } |
| 53 | rustls-pki-types = { version = "1", features = ["std"] } |
| 54 | rustls-webpki = { version = "0.103", default-features = false } |
| 55 | webpki-roots = "1" |
| 56 | serde_json = "1.0" |
| 57 | rowan = "0.16" |
| 58 | text-size = "1.1" |
| 59 | |
| 60 | # Releases of the toolchain (issue #120): the compiler and the runtime with |
| 61 | # whole-program optimisation, about 5-10% faster than `release` but much |
| 62 | # slower to build, so `release` stays the everyday profile (CI, tests). |
| 63 | # `scripts/bench-track.sh` measures this one, as what users get. |
| 64 | [profile.dist] |
| 65 | inherits = "release" |
| 66 | lto = "fat" |
| 67 | codegen-units = 1 |
| 68 | |
| 69 | # The runtime archive programs link in release builds (`fast`, ADR 0031): |
| 70 | # whole-program LTO, one codegen unit, and `panic = "abort"`, since nothing |
| 71 | # catches a Rust panic in the runtime. `scripts/runtime.sh` builds it, without |
| 72 | # the leak oracle (`--no-default-features --features mimalloc,tls,crypto`). |
| 73 | [profile.runtime] |
| 74 | inherits = "release" |
| 75 | lto = "fat" |
| 76 | codegen-units = 1 |
| 77 | panic = "abort" |
| 78 | |
| 79 | # The same runtime as LLVM bitcode (`lto`, ADR 0032): `scripts/runtime.sh` |
| 80 | # builds it with `-Clinker-plugin-lto`, and the link optimises it together |
| 81 | # with the program's C (ThinLTO), so here it is not optimised as a whole. |
| 82 | [profile.runtime-lto] |
| 83 | inherits = "runtime" |
| 84 | lto = "off" |
| 85 | |
| 86 | [workspace.lints.rust] |
| 87 | unsafe_op_in_unsafe_fn = "deny" |
| 88 | # `--cfg loom` runs the runtime's loom models (runtime/louise_rt/src/handoff.rs). |
| 89 | # `--cfg louise_rt_tsan` tells ThreadSanitizer about fiber switches |
| 90 | # (runtime/louise_rt/src/fiber.rs; scripts/tsan.sh). |
| 91 | unexpected_cfgs = { level = "warn", check-cfg = ["cfg(loom)", "cfg(louise_rt_tsan)"] } |
| 92 | |
| 93 | [workspace.lints.clippy] |
| 94 | undocumented_unsafe_blocks = "warn" |