Skip to content

Commit 536642e

Browse files
committed
Bump version to 1.0
APIs are ready to be freezed
1 parent 55d3301 commit 536642e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ documentation = "https://docs.rs/cmd_lib"
88
keywords = ["shell", "script", "cli", "process", "pipe"]
99
categories = ["command-line-interface", "command-line-utilities"]
1010
readme = "README.md"
11-
version = "0.15.2"
11+
version = "1.0.0"
1212
authors = ["rust-shell-script <rust-shell-script@gmail.com>"]
1313
edition = "2018"
1414

1515
[workspace]
1616
members = ["macros", "examples"]
1717

1818
[dependencies]
19-
cmd_lib_macros = { version = "0.15.2", path = "./macros" }
19+
cmd_lib_macros = { version = "1.0.0", path = "./macros" }
2020
lazy_static = "1.4.0"
2121

2222
[dev-dependencies]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ You can use the [glob](https://github.com/rust-lang-nursery/glob) package instea
264264
#### Thread Safety
265265

266266
This library tries very hard to not set global states, so parallel `cargo test` can be executed just fine.
267-
However, there might be some internal process related APIs which are not thread-safe. More
268-
investigation is needed.
267+
The only known APIs not supported in multi-thread environment are the
268+
`tls_init/tls_get/tls_set` macros, and you should only use them for *thread local* variables.
269269

270270

271271
License: MIT OR Apache-2.0

macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ license = "MIT OR Apache-2.0"
55
homepage = "https://github.com/rust-shell-script/rust_cmd_lib"
66
repository = "https://github.com/rust-shell-script/rust_cmd_lib"
77
keywords = ["shell", "script", "cli", "process", "pipe"]
8-
version = "0.15.2"
8+
version = "1.0.0"
99
authors = ["Tao Guo <tao.guo.code@gmail.com>"]
1010
edition = "2018"
1111

macros/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn use_custom_cmd(item: proc_macro::TokenStream) -> proc_macro::TokenStream
8484
/// ```
8585
/// # use cmd_lib::*;
8686
/// use_builtin_cmd!(info); // import only one builtin command
87-
/// use_builtin_cmd!(true, echo, info, warn, err, die); // import all the builtins
87+
/// use_builtin_cmd!(true, echo, info, warn, err, die, cat); // import all the builtins
8888
/// ```
8989
/// `cd` builtin command is always enabled without importing it.
9090
#[proc_macro]

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@
294294
//! ### Thread Safety
295295
//!
296296
//! This library tries very hard to not set global states, so parallel `cargo test` can be executed just fine.
297-
//! However, there might be some internal process related APIs which are not thread-safe. More
298-
//! investigation is needed.
297+
//! The only known APIs not supported in multi-thread environment are the
298+
//! `tls_init/tls_get/tls_set` macros, and you should only use them for *thread local* variables.
299299
//!
300300
301301
pub use cmd_lib_macros::{

0 commit comments

Comments
 (0)