File tree 4 files changed +12
-8
lines changed
4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,13 @@ cc = "1.0"
14
14
15
15
[features ]
16
16
default = [] # automatic
17
- libstdcxx = [] # force libstdc++
18
- libcxx = [] # force libc++
17
+ "libstdc++" = [] # force libstdc++
18
+ "libc++" = [] # force libc++
19
19
nothing = [] # link nothing, determined somewhere else
20
20
21
+ # deprecated aliases
22
+ libstdcxx = [" libstdc++" ]
23
+ libcxx = [" libc++" ]
24
+
21
25
[package .metadata .docs .rs ]
22
26
targets = [" x86_64-unknown-linux-gnu" ]
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ An application that wants a particular one or the other linked should use:
35
35
36
36
``` toml
37
37
[dependencies ]
38
- link-cplusplus = { version = " 1.0" , features = [" libstdcxx " ] }
38
+ link-cplusplus = { version = " 1.0" , features = [" libstdc++ " ] }
39
39
40
40
# or
41
41
42
- link-cplusplus = { version = " 1.0" , features = [" libcxx " ] }
42
+ link-cplusplus = { version = " 1.0" , features = [" libc++ " ] }
43
43
```
44
44
45
45
An application that wants to handle its own more complicated logic for link
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ use std::fs;
3
3
use std:: path:: PathBuf ;
4
4
5
5
fn main ( ) {
6
- let libstdcxx = cfg ! ( feature = "libstdcxx " ) ;
7
- let libcxx = cfg ! ( feature = "libcxx " ) ;
6
+ let libstdcxx = cfg ! ( feature = "libstdc++ " ) ;
7
+ let libcxx = cfg ! ( feature = "libc++ " ) ;
8
8
let nothing = cfg ! ( feature = "nothing" ) ;
9
9
10
10
if nothing {
Original file line number Diff line number Diff line change 37
37
//!
38
38
//! ```toml
39
39
//! [dependencies]
40
- //! link-cplusplus = { version = "1.0", features = ["libstdcxx "] }
40
+ //! link-cplusplus = { version = "1.0", features = ["libstdc++ "] }
41
41
//!
42
42
//! # or
43
43
//!
44
- //! link-cplusplus = { version = "1.0", features = ["libcxx "] }
44
+ //! link-cplusplus = { version = "1.0", features = ["libc++ "] }
45
45
//! ```
46
46
//!
47
47
//! An application that wants to handle its own more complicated logic for link
You can’t perform that action at this time.
0 commit comments