]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/lib.rs
f1812c20dccde3bab91d7005aa09ef4bb46d5493
[rust.git] / src / librustc_target / lib.rs
1 //! Some stuff used by rustc that doesn't have many dependencies
2 //!
3 //! Originally extracted from rustc::back, which was nominally the
4 //! compiler 'backend', though LLVM is rustc's backend, so rustc_target
5 //! is really just odds-and-ends relating to code gen and linking.
6 //! This crate mostly exists to make rustc smaller, so we might put
7 //! more 'stuff' here in the future. It does not have a dependency on
8 //! LLVM.
9
10 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
11
12 #![feature(box_syntax)]
13 #![feature(nll)]
14 #![feature(rustc_attrs)]
15 #![feature(slice_patterns)]
16 #![feature(step_trait)]
17
18 #![deny(rust_2018_idioms)]
19 #![cfg_attr(not(stage0), deny(internal))]
20
21 #[macro_use] extern crate log;
22
23 #[allow(unused_extern_crates)]
24 extern crate serialize as rustc_serialize; // used by deriving
25
26 // See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
27 #[allow(unused_extern_crates)]
28 extern crate rustc_cratesio_shim;
29
30 #[macro_use]
31 extern crate rustc_data_structures;
32
33 pub mod abi;
34 pub mod spec;