Skip to content

Instantly share code, notes, and snippets.

@matklad
Last active October 4, 2020 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matklad/8e7502a83e5492040c4436b716922bf5 to your computer and use it in GitHub Desktop.
Save matklad/8e7502a83e5492040c4436b716922bf5 to your computer and use it in GitHub Desktop.
TOML vs nestedtext.org
workspace:
members:
- crates/*
- xtask/
profile:
dev:
# Disabling debug info speeds up builds a bunch,
# and we don't rely on it for debugging that much.
debug: 0
package:
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
release:
incremental: true
debug: 0
# Ideally, we would use `build-override` here, but some crates are also
# needed at run-time and we end up compiling them twice.
package:
chalk-derive:
opt-level: 0
proc-macro2:
opt-level: 0
quote:
opt-level: 0
salsa-macros:
opt-level: 0
serde_derive:
opt-level: 0
syn:
opt-level: 0
tracing-attributes:
opt-level: 0
xtask:
opt-level: 0
patch:
crates-io:
# rowan:
# path: ../rowan
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
[workspace]
members = [ "crates/*", "xtask/" ]
[profile.dev]
# 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]
chalk-derive.opt-level = 0
proc-macro2.opt-level = 0
quote.opt-level = 0
salsa-macros.opt-level = 0
serde_derive.opt-level = 0
syn.opt-level = 0
tracing-attributes.opt-level = 0
xtask.opt-level = 0
[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" }
package:
name: rust-analyzer
version: 0.0.0
description: TBD
license: MIT OR Apache-2.0
authors:
- rust-analyzer developers
autobins: false
edition: 2018
lib:
doctest: false
bin:
-
name: rust-analyzer
path: src/bin/main.rs
dependencies:
anyhow: 1.0.26
crossbeam-channel: 0.4.0
env_logger:
version: 0.7.1
default-features: false
itertools: 0.9.0
jod-thread: 0.1.0
log: 0.4.8
lsp-types:
version: 0.82.0
features:
- proposed
parking_lot: 0.11.0
pico-args: 0.3.1
oorandom: 11.1.2
rustc-hash: 1.1.0
serde:
version: 1.0.106
features:
- derive
serde_json: 1.0.48
threadpool: 1.7.1
rayon: 1.3.1
mimalloc:
version: 0.1.19
default-features: false
optional: true
lsp-server: 0.3.3
stdx:
path: ../stdx
version: 0.0.0
flycheck:
path: ../flycheck
version: 0.0.0
ide:
path: ../ide
version: 0.0.0
profile:
path: ../profile
version: 0.0.0
project_model:
path: ../project_model
version: 0.0.0
syntax:
path: ../syntax
version: 0.0.0
text_edit:
path: ../text_edit
version: 0.0.0
vfs:
path: ../vfs
version: 0.0.0
vfs-notify:
path: ../vfs-notify
version: 0.0.0
cfg:
path: ../cfg
version: 0.0.0
toolchain:
path: ../toolchain
version: 0.0.0
# This should only be used in CLI
base_db:
path: ../base_db
version: 0.0.0
ide_db:
path: ../ide_db
version: 0.0.0
ssr:
path: ../ssr
version: 0.0.0
hir:
path: ../hir
version: 0.0.0
hir_def:
path: ../hir_def
version: 0.0.0
hir_ty:
path: ../hir_ty
version: 0.0.0
proc_macro_srv:
path: ../proc_macro_srv
version: 0.0.0
target:
cfg(windows):
dependencies:
winapi: 0.3.8
dev-dependencies
expect-test: 1.0
test_utils:
path: ../test_utils
mbe:
path: ../mbe
tt:
path: ../tt
[package]
name = "rust-analyzer"
version = "0.0.0"
description = "TBD"
license = "MIT OR Apache-2.0"
authors = ["rust-analyzer developers"]
autobins = false
edition = "2018"
[lib]
doctest = false
[[bin]]
name = "rust-analyzer"
path = "src/bin/main.rs"
[dependencies]
anyhow = "1.0.26"
crossbeam-channel = "0.4.0"
env_logger = { version = "0.7.1", default-features = false }
itertools = "0.9.0"
jod-thread = "0.1.0"
log = "0.4.8"
lsp-types = { version = "0.82.0", features = ["proposed"] }
parking_lot = "0.11.0"
pico-args = "0.3.1"
oorandom = "11.1.2"
rustc-hash = "1.1.0"
serde = { version = "1.0.106", features = ["derive"] }
serde_json = "1.0.48"
threadpool = "1.7.1"
rayon = "1.3.1"
mimalloc = { version = "0.1.19", default-features = false, optional = true }
lsp-server = "0.3.3"
stdx = { path = "../stdx", version = "0.0.0" }
flycheck = { path = "../flycheck", version = "0.0.0" }
ide = { path = "../ide", version = "0.0.0" }
profile = { path = "../profile", version = "0.0.0" }
project_model = { path = "../project_model", version = "0.0.0" }
syntax = { path = "../syntax", version = "0.0.0" }
text_edit = { path = "../text_edit", version = "0.0.0" }
vfs = { path = "../vfs", version = "0.0.0" }
vfs-notify = { path = "../vfs-notify", version = "0.0.0" }
cfg = { path = "../cfg", version = "0.0.0" }
toolchain = { path = "../toolchain", version = "0.0.0" }
# This should only be used in CLI
base_db = { path = "../base_db", version = "0.0.0" }
ide_db = { path = "../ide_db", version = "0.0.0" }
ssr = { path = "../ssr", version = "0.0.0" }
hir = { path = "../hir", version = "0.0.0" }
hir_def = { path = "../hir_def", version = "0.0.0" }
hir_ty = { path = "../hir_ty", version = "0.0.0" }
proc_macro_srv = { path = "../proc_macro_srv", version = "0.0.0" }
[target.'cfg(windows)'.dependencies]
winapi = "0.3.8"
[dev-dependencies]
expect-test = "1.0"
test_utils = { path = "../test_utils" }
mbe = { path = "../mbe" }
tt = { path = "../tt" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment