tobogganSe connecter

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.

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