Skip to content

Commit 0436bd2

Browse files
bors[bot]taiki-e
andauthored
Merge #732
732: Add comment about cfgs to build script r=taiki-e a=taiki-e cc #731 #433 Co-authored-by: Taiki Endo <[email protected]>
2 parents 0e2a930 + b999f89 commit 0436bd2

File tree

4 files changed

+64
-12
lines changed

4 files changed

+64
-12
lines changed

crossbeam-epoch/build.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ use std::env;
44

55
include!("no_atomic.rs");
66

7-
// The rustc-cfg strings below are *not* public API. Please let us know by
8-
// opening a GitHub issue if your build environment requires some way to enable
9-
// these cfgs other than by executing our build script.
7+
// The rustc-cfg listed below are considered public API, but it is *unstable*
8+
// and outside of the normal semver guarantees:
9+
//
10+
// - `crossbeam_no_atomic_cas`
11+
// Assume the target does *not* support atomic CAS operations.
12+
// This is usually detected automatically by the build script, but you may
13+
// need to enable it manually when building for custom targets or using
14+
// non-cargo build systems that don't run the build script.
15+
//
16+
// With the exceptions mentioned above, the rustc-cfg strings below are
17+
// *not* public API. Please let us know by opening a GitHub issue if your build
18+
// environment requires some way to enable these cfgs other than by executing
19+
// our build script.
1020
fn main() {
1121
let target = match env::var("TARGET") {
1222
Ok(target) => target,

crossbeam-queue/build.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ use std::env;
44

55
include!("no_atomic.rs");
66

7-
// The rustc-cfg strings below are *not* public API. Please let us know by
8-
// opening a GitHub issue if your build environment requires some way to enable
9-
// these cfgs other than by executing our build script.
7+
// The rustc-cfg listed below are considered public API, but it is *unstable*
8+
// and outside of the normal semver guarantees:
9+
//
10+
// - `crossbeam_no_atomic_cas`
11+
// Assume the target does *not* support atomic CAS operations.
12+
// This is usually detected automatically by the build script, but you may
13+
// need to enable it manually when building for custom targets or using
14+
// non-cargo build systems that don't run the build script.
15+
//
16+
// With the exceptions mentioned above, the rustc-cfg strings below are
17+
// *not* public API. Please let us know by opening a GitHub issue if your build
18+
// environment requires some way to enable these cfgs other than by executing
19+
// our build script.
1020
fn main() {
1121
let target = match env::var("TARGET") {
1222
Ok(target) => target,

crossbeam-skiplist/build.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ use std::env;
44

55
include!("no_atomic.rs");
66

7-
// The rustc-cfg strings below are *not* public API. Please let us know by
8-
// opening a GitHub issue if your build environment requires some way to enable
9-
// these cfgs other than by executing our build script.
7+
// The rustc-cfg listed below are considered public API, but it is *unstable*
8+
// and outside of the normal semver guarantees:
9+
//
10+
// - `crossbeam_no_atomic_cas`
11+
// Assume the target does *not* support atomic CAS operations.
12+
// This is usually detected automatically by the build script, but you may
13+
// need to enable it manually when building for custom targets or using
14+
// non-cargo build systems that don't run the build script.
15+
//
16+
// With the exceptions mentioned above, the rustc-cfg strings below are
17+
// *not* public API. Please let us know by opening a GitHub issue if your build
18+
// environment requires some way to enable these cfgs other than by executing
19+
// our build script.
1020
fn main() {
1121
let target = match env::var("TARGET") {
1222
Ok(target) => target,

crossbeam-utils/build.rs

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,31 @@ use std::env;
44

55
include!("no_atomic.rs");
66

7-
// The rustc-cfg strings below are *not* public API. Please let us know by
8-
// opening a GitHub issue if your build environment requires some way to enable
9-
// these cfgs other than by executing our build script.
7+
// The rustc-cfg listed below are considered public API, but it is *unstable*
8+
// and outside of the normal semver guarantees:
9+
//
10+
// - `crossbeam_no_atomic_cas`
11+
// Assume the target does *not* support atomic CAS operations.
12+
// This is usually detected automatically by the build script, but you may
13+
// need to enable it manually when building for custom targets or using
14+
// non-cargo build systems that don't run the build script.
15+
//
16+
// - `crossbeam_no_atomic`
17+
// Assume the target does *not* support any atomic operations.
18+
// This is usually detected automatically by the build script, but you may
19+
// need to enable it manually when building for custom targets or using
20+
// non-cargo build systems that don't run the build script.
21+
//
22+
// - `crossbeam_no_atomic_64`
23+
// Assume the target does *not* support AtomicU64/AtomicI64.
24+
// This is usually detected automatically by the build script, but you may
25+
// need to enable it manually when building for custom targets or using
26+
// non-cargo build systems that don't run the build script.
27+
//
28+
// With the exceptions mentioned above, the rustc-cfg strings below are
29+
// *not* public API. Please let us know by opening a GitHub issue if your build
30+
// environment requires some way to enable these cfgs other than by executing
31+
// our build script.
1032
fn main() {
1133
let target = match env::var("TARGET") {
1234
Ok(target) => target,

0 commit comments

Comments
 (0)