-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from rodrimati1992/fix_fn_promotion
0.9.2 release
- Loading branch information
Showing
44 changed files
with
940 additions
and
494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "abi_stable" | ||
version = "0.9.1" | ||
version = "0.9.2" | ||
authors = ["rodrimati1992 <[email protected]>"] | ||
edition="2018" | ||
license = "MIT/Apache-2.0" | ||
|
@@ -34,20 +34,25 @@ all_nightly=[ | |
"nightly_const_params", | ||
] | ||
|
||
# Enables stuff that requires const generics(in nightly Rust). | ||
nightly_const_params=[] | ||
# Enables the `#![feature(min_const_generics)]` attribute in | ||
nightly_const_params=["const_params"] | ||
|
||
# Test features,only used internally. | ||
testing=[] | ||
test_const_params = [] | ||
only_new_tests=["testing"] | ||
sabi_trait_examples=[] | ||
nonexhaustive_examples=[] | ||
|
||
# For disabling tests that break with the reduced promotion in | ||
# https://github.com/rust-lang/rust/pull/80243#event-4161720040 | ||
no_fn_promotion = [] | ||
|
||
channels=["crossbeam-channel"] | ||
|
||
|
||
[dependencies] | ||
abi_stable_derive= {version="0.9.0",path="../abi_stable_derive"} | ||
abi_stable_derive= {version="0.9.2",path="../abi_stable_derive"} | ||
abi_stable_shared= {version="0.9.0",path="../abi_stable_shared"} | ||
serde = { version = "1.0.117", features = ["derive"] } | ||
repr_offset = { version = "0.1.1", default_features = false } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
use rustc_version::{Version, Channel}; | ||
use rustc_version::Channel; | ||
|
||
fn main() { | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
println!("cargo:rerun-if-changed=../readme.md"); | ||
|
||
let rver = rustc_version::version().unwrap(); | ||
let channel=rustc_version::version_meta().unwrap().channel; | ||
if channel == Channel::Nightly && std::env::var("CARGO_FEATURE_test_const_params").is_ok() { | ||
println!("cargo:warning=ENABLED CONST GENERICS"); | ||
|
||
if Version::new(1, 42, 0) <= rver { | ||
println!("cargo:rustc-cfg=rust_1_42"); | ||
println!("cargo:rustc-cfg=feature=\"nightly_const_params\""); | ||
println!("cargo:rustc-cfg=feature=\"const_params\""); | ||
} | ||
|
||
let channel=rustc_version::version_meta().unwrap().channel; | ||
if let Channel::Nightly=channel { | ||
println!("cargo:rustc-cfg=feature=\"nightly_rust\""); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.