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.

94 lignes · 4088 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_comptime = { path = "crates/louise_comptime" }
27louise_types = { path = "crates/louise_types" }
28louise_span = { path = "crates/louise_span" }
29louise_syntax = { path = "crates/louise_syntax" }
30louise_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.
34louise_rt_prims = { path = "runtime/louise_rt_prims", default-features = false }
35ariadne = "0.6.0"
36clap = { version = "4.6", features = ["derive"] }
37insta = { version = "1.49", features = ["glob"] }
38lsp-server = "0.10.0"
39lsp-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).
42mimalloc = { version = "0.1", default-features = false }
43# Big integers: `Int` outside 63 bits, in the runtime and the interpreter
44# alike (ADR 0014).
45num-bigint = "0.4"
46num-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.
52rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
53rustls-pki-types = { version = "1", features = ["std"] }
54rustls-webpki = { version = "0.103", default-features = false }
55webpki-roots = "1"
56serde_json = "1.0"
57rowan = "0.16"
58text-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]
65inherits = "release"
66lto = "fat"
67codegen-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]
74inherits = "release"
75lto = "fat"
76codegen-units = 1
77panic = "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]
83inherits = "runtime"
84lto = "off"
85
86[workspace.lints.rust]
87unsafe_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).
91unexpected_cfgs = { level = "warn", check-cfg = ["cfg(loom)", "cfg(louise_rt_tsan)"] }
92
93[workspace.lints.clippy]
94undocumented_unsafe_blocks = "warn"