cabe97272d
Replace const_cstr with cstr crate This PR replaces the `const_cstr` macro inside `rustc_data_structures` with `cstr` macro from [cstr](https://crates.io/crates/cstr) crate. The two macros basically serve the same purpose, which is to generate `&'static CStr` from a string literal. `cstr` is better because it validates the literal at compile time, while the existing `const_cstr` does it at runtime when `debug_assertions` is enabled. In addition, the value `cstr` generates can be used in constant context (which is seemingly not needed anywhere currently, though).
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
authors = ["The Rust Project Developers"]
|
|
name = "rustc_codegen_llvm"
|
|
version = "0.0.0"
|
|
edition = "2018"
|
|
|
|
[lib]
|
|
test = false
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
bitflags = "1.0"
|
|
cstr = "0.2"
|
|
libc = "0.2"
|
|
measureme = "9.0.0"
|
|
snap = "1"
|
|
tracing = "0.1"
|
|
rustc_middle = { path = "../rustc_middle" }
|
|
rustc-demangle = "0.1.18"
|
|
rustc_attr = { path = "../rustc_attr" }
|
|
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_errors = { path = "../rustc_errors" }
|
|
rustc_feature = { path = "../rustc_feature" }
|
|
rustc_fs_util = { path = "../rustc_fs_util" }
|
|
rustc_hir = { path = "../rustc_hir" }
|
|
rustc_incremental = { path = "../rustc_incremental" }
|
|
rustc_index = { path = "../rustc_index" }
|
|
rustc_llvm = { path = "../rustc_llvm" }
|
|
rustc_session = { path = "../rustc_session" }
|
|
rustc_serialize = { path = "../rustc_serialize" }
|
|
rustc_target = { path = "../rustc_target" }
|
|
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
|
|
rustc_ast = { path = "../rustc_ast" }
|
|
rustc_span = { path = "../rustc_span" }
|