X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=Cargo.toml;h=4d6908fa93e9973da7aee0eaa0b9d03d1207a5ec;hb=b251a30819bcf97703cf98a7013aeafba1bf384a;hp=612e6809f62a3c0949fcf4d00125905b5d895444;hpb=41feb816c98894d48df97193eb085738e405a3c2;p=rust.git diff --git a/Cargo.toml b/Cargo.toml index 612e6809f62..4d6908fa93e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,43 +1,33 @@ [workspace] -members = [ "crates/*", "xtask/" ] +resolver = "2" +members = ["xtask/", "lib/*", "crates/*"] +exclude = ["crates/proc_macro_test/imp"] [profile.dev] -# disabling debug info speeds up builds a bunch, +# Disabling debug info speeds up builds a bunch, # and we don't rely on it for debugging that much. debug = 0 +[profile.dev.package] +# These speed up local tests. +rowan.opt-level = 3 +rustc-hash.opt-level = 3 +smol_str.opt-level = 3 +text-size.opt-level = 3 +# This speeds up `cargo xtask dist`. +miniz_oxide.opt-level = 3 + [profile.release] incremental = true -debug = 0 # set this to 1 or 2 to get more useful backtraces in debugger - -# ideally, we would use `build-override` here, but some crates are also -# needed at run-time and we end up compiling them twice -[profile.release.package.proc-macro2] -opt-level = 0 -[profile.release.package.quote] -opt-level = 0 -[profile.release.package.syn] -opt-level = 0 -[profile.release.package.serde_derive] -opt-level = 0 -[profile.release.package.chalk-derive] -opt-level = 0 -[profile.release.package.salsa-macros] -opt-level = 0 -[profile.release.package.tracing-attributes] -opt-level = 0 -[profile.release.package.xtask] -opt-level = 0 - -# Gzipping the artifacts is up to 10 times faster with optimizations (`cargo xtask dist`). -# `miniz_oxide` is the direct dependency of `flate2` which does all the heavy lifting -[profile.dev.package.miniz_oxide] -opt-level = 3 +debug = 0 # Set this to 1 or 2 to get more useful backtraces in debugger. [patch.'crates-io'] # rowan = { path = "../rowan" } -[patch.'https://github.com/rust-lang/chalk.git'] # chalk-solve = { path = "../chalk/chalk-solve" } -# chalk-rust-ir = { path = "../chalk/chalk-rust-ir" } # chalk-ir = { path = "../chalk/chalk-ir" } +# chalk-recursive = { path = "../chalk/chalk-recursive" } + +# ungrammar = { path = "../ungrammar" } + +# salsa = { path = "../salsa" }