File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ repository = "https://github.com/dtolnay/link-cplusplus"
1313rust-version = " 1.68"
1414
1515[build-dependencies ]
16- cc = " 1.0 "
16+ cc = " 1"
1717
1818[features ]
1919default = [] # automatic
Original file line number Diff line number Diff line change @@ -29,26 +29,26 @@ Cargo.toml:
2929
3030``` toml
3131[dependencies ]
32- link-cplusplus = " 1.0 "
32+ link-cplusplus = " 1"
3333```
3434
3535An application that wants a particular one or the other linked should use:
3636
3737``` toml
3838[dependencies ]
39- link-cplusplus = { version = " 1.0 " , features = [" libstdc++" ] }
39+ link-cplusplus = { version = " 1" , features = [" libstdc++" ] }
4040
4141# or
4242
43- link-cplusplus = { version = " 1.0 " , features = [" libc++" ] }
43+ link-cplusplus = { version = " 1" , features = [" libc++" ] }
4444```
4545
4646An application that wants to handle its own more complicated logic for link
4747flags from its build script can make this crate do nothing by using:
4848
4949``` toml
5050[dependencies ]
51- link-cplusplus = { version = " 1.0 " , features = [" nothing" ] }
51+ link-cplusplus = { version = " 1" , features = [" nothing" ] }
5252```
5353
5454Lastly, make sure to add an explicit ` extern crate ` dependency to your crate
Original file line number Diff line number Diff line change 3131//!
3232//! ```toml
3333//! [dependencies]
34- //! link-cplusplus = "1.0 "
34+ //! link-cplusplus = "1"
3535//! ```
3636//!
3737//! An application that wants a particular one or the other linked should use:
3838//!
3939//! ```toml
4040//! [dependencies]
41- //! link-cplusplus = { version = "1.0 ", features = ["libstdc++"] }
41+ //! link-cplusplus = { version = "1", features = ["libstdc++"] }
4242//!
4343//! # or
4444//!
45- //! link-cplusplus = { version = "1.0 ", features = ["libc++"] }
45+ //! link-cplusplus = { version = "1", features = ["libc++"] }
4646//! ```
4747//!
4848//! An application that wants to handle its own more complicated logic for link
4949//! flags from its build script can make this crate do nothing by using:
5050//!
5151//! ```toml
5252//! [dependencies]
53- //! link-cplusplus = { version = "1.0 ", features = ["nothing"] }
53+ //! link-cplusplus = { version = "1", features = ["nothing"] }
5454//! ```
5555//!
5656//! Lastly, make sure to add an explicit `extern crate` dependency to your crate
You can’t perform that action at this time.
0 commit comments