Skip to content

Commit 8414a91

Browse files
authored
Merge pull request #1 from clucompany/dev
Update library `1.0.4` to version `1.1.0`
2 parents 1ece1cf + 4aae037 commit 8414a91

File tree

22 files changed

+742
-1052
lines changed

22 files changed

+742
-1052
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
7+
- dev
68
pull_request:
7-
branches: [ master ]
9+
branches:
10+
- master
11+
- dev
812

913
env:
1014
CARGO_TERM_COLOR: always
@@ -34,9 +38,9 @@ jobs:
3438
run: cargo test --no-default-features --lib --verbose
3539
- name: Run cargo alltest
3640
run: cargo test --all-features --verbose
37-
- name: Std
38-
run: cargo test --no-default-features --features std,point,get_point_name --lib --verbose --examples
41+
- name: STD
42+
run: cargo test --no-default-features --features std,point --lib --verbose --examples
3943
- name: PL
40-
run: cargo test --no-default-features --features parking_lot,point,get_point_name --lib --verbose --examples
41-
- name: ASYNC(TOKIO+PL)
42-
run: cargo test --no-default-features --features async,point,get_point_name --lib --verbose --tests
44+
run: cargo test --no-default-features --features pl,point --lib --verbose --examples
45+
- name: ASYNC(TOKIO)
46+
run: cargo test --no-default-features --features async,point --lib --verbose --tests

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[package]
22
name = "synchronized"
3-
version = "1.0.4"
3+
version = "1.1.0"
44
authors = ["Denis Kotlyarov (Денис Котляров) <denis2005991@gmail.com>"]
55
repository = "https://github.com/clucompany/synchronized.git"
6-
edition = "2021"
7-
build = "build.rs"
6+
edition = "2024"
87

98
license = "Apache-2.0"
109
readme = "README.md"
@@ -21,24 +20,25 @@ all-features = true
2120
rustdoc-args = ["--cfg", "docsrs"]
2221

2322
[features]
24-
default = ["std", "point", "get_point_name"]
25-
# Ability to get the name of the synchronization point.
26-
get_point_name = []
27-
# Adds or removes support for the `synchronized_point` macro.
23+
default = ["std", "point"]
24+
# Adds or removes support for the `sync_point` macro.
2825
point = []
26+
27+
# Alternative to `std` flag but only uses synchronization primitives from `parking_lot`
28+
pl = ["parking_lot"]
29+
2930
# Use synchronization primitives from `std`. Note that is_lock is not supported in it.
3031
#
3132
# Note that you can just use `parking_lot` instead of `std`.
3233
std = []
3334

3435
# The synchronization primitive is implemented using the `tokio`+`parking_lot`
3536
# library for an asynchronous environment.
36-
async = ["tokio", "async-trait"]
37+
async = ["tokio"]
3738

3839
[dependencies]
3940
# The synchronization primitive is implemented using the `parking_lot` library.
40-
parking_lot = { version = "0.12.1", optional = true }
41+
parking_lot = { version = "0.12.3", optional = true }
4142

4243
# The synchronization primitive is implemented using the `tokio`+`parking_lot` library.
43-
tokio = { version = "1.21.2", optional = true, default-features = false, features = ["parking_lot", "sync"]}
44-
async-trait = { version = "0.1.58", optional = true }
44+
tokio = { version = "1.44.2", optional = true, default-features = false, features = ["parking_lot", "sync"]}

0 commit comments

Comments
 (0)