rcl/Cargo.rcl
Ruud van Asseldonk 59be133128 Bump version to 0.8.0
I'm leaving the Zed extension pointing to the older commit of the
Tree-sitter grammar, I'll update that after this version bump. It's
a bit awkward to do it this way around, but there are circular
dependencies that can't be avoided. Maybe with an attack on SHA1 it
can be done in theory, but let's not go there.
2025-03-02 21:15:33 +01:00

42 lines
1.1 KiB
Text

{
package = {
name = "rcl",
version = "0.8.0",
authors = ["Ruud van Asseldonk <dev@veniogames.com>"],
edition = "2021",
license = "Apache-2.0",
description = "A reasonable configuration language.",
},
dependencies = {
unicode-width = "0.1.10",
},
workspace = {
members = [
"fuzz",
"pyrcl",
"grammar/tree-sitter-rcl",
"wasm",
],
},
// Since Rust 1.80 we need to add the incantation below to avoid a warning about
// cfg(fuzzing), see <https://blog.rust-lang.org/2024/05/06/check-cfg.html>.
// But *before* Rust 1.80, this section itself causes a warning! So for now we
// leave this disabled, and we are compatible with the rust-toolchain.toml version.
// [lints.rust]
// unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fuzzing)"] }
profile = {
release = {
lto = "thin",
panic = "abort",
strip = true,
},
// For WASM, we optimize for size.
release-wasm = {
inherits = "release",
lto = "fat",
codegen-units = 1,
// Opt-level "z" produces slightly smaller wasm bundles than opt-level "s".
opt-level = "z",
},
},
}