Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
df34d17b
Commit
df34d17b
authored
5 years ago
by
Joe Richey
Browse files
Options
Downloads
Patches
Plain Diff
Remove use of `unstable` feature
parent
1b4747e7
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Cargo.toml
+1
-2
1 addition, 2 deletions
Cargo.toml
README.md
+0
-5
0 additions, 5 deletions
README.md
build.rs
+1
-2
1 addition, 2 deletions
build.rs
with
2 additions
and
9 deletions
Cargo.toml
+
1
−
2
View file @
df34d17b
...
...
@@ -26,9 +26,8 @@ rustc-std-workspace-core = { version = "1.0.0", optional = true }
default
=
[
"std"
]
std
=
[]
align
=
[]
rustc-dep-of-std
=
[
'align'
,
'rustc-std-workspace-core'
,
'unstable'
]
rustc-dep-of-std
=
[
'align'
,
'rustc-std-workspace-core'
]
extra_traits
=
[]
unstable
=
[]
# use_std is deprecated, use `std` instead
use_std
=
[
'std'
]
...
...
This diff is collapsed.
Click to expand it.
README.md
+
0
−
5
View file @
df34d17b
...
...
@@ -35,11 +35,6 @@ libc = "0.2"
*
`extra_traits`
: all
`struct`
s implemented in
`libc`
are
`Copy`
and
`Clone`
.
This feature derives
`Debug`
,
`Eq`
,
`Hash`
, and
`PartialEq`
.
*
`unstable`
: This feature enables
`libc`
bindings that are only possible with
unstable Rust features. Right now, this just for
[
`extern` `#[thread_local]` statics
](
https://github.com/rust-lang/rust/issues/29594
)
on certain platforms. Requires nightly.
*
**deprecated**
:
`use_std`
is deprecated, and is equivalent to
`std`
.
## Rust version support
...
...
This diff is collapsed.
Click to expand it.
build.rs
+
1
−
2
View file @
df34d17b
...
...
@@ -7,7 +7,6 @@ fn main() {
rustc_minor_version
()
.expect
(
"Failed to get rustc version"
);
let
rustc_dep_of_std
=
env
::
var
(
"CARGO_FEATURE_RUSTC_DEP_OF_STD"
)
.is_ok
();
let
align_cargo_feature
=
env
::
var
(
"CARGO_FEATURE_ALIGN"
)
.is_ok
();
let
unstable_cargo_feature
=
env
::
var
(
"CARGO_FEATURE_UNSTABLE"
)
.is_ok
();
if
env
::
var
(
"CARGO_FEATURE_USE_STD"
)
.is_ok
()
{
println!
(
...
...
@@ -55,7 +54,7 @@ fn main() {
}
// #[thread_local] is currently unstable
if
unstable_cargo_feature
||
rustc_dep_of_std
{
if
rustc_dep_of_std
{
println!
(
"cargo:rustc-cfg=libc_thread_local"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment