From 8f0847eb94fa25502797d31ddde814024dd9b779 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 10 Oct 2016 19:05:21 -0500 Subject: [PATCH] rename to compiler_builtins, add rust-lang/rust-ish crate attributes --- Cargo.toml | 2 +- src/lib.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c198d9f..6455a6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Jorge Aparicio "] build = "build.rs" -name = "rustc_builtins" +name = "compiler_builtins" version = "0.1.0" [build-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 3adddd5..bcc56e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,13 +1,23 @@ +#![cfg_attr(not(stage0), deny(warnings))] #![cfg_attr(not(test), no_std)] #![compiler_builtins] #![crate_name = "compiler_builtins"] #![crate_type = "rlib"] +#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png", + html_favicon_url = "https://doc.rust-lang.org/favicon.ico", + html_root_url = "https://doc.rust-lang.org/nightly/", + html_playground_url = "https://play.rust-lang.org/", + test(attr(deny(warnings))))] #![feature(asm)] #![feature(compiler_builtins)] #![feature(core_intrinsics)] #![feature(linkage)] #![feature(naked_functions)] +#![feature(staged_api)] #![no_builtins] +#![unstable(feature = "compiler_builtins", + reason = "Compiler builtins. Will never become stable.", + issue = "0")] // We disable #[no_mangle] for tests so that we can verify the test results // against the native compiler-rt implementations of the builtins.