Skip to content

Commit

Permalink
feat!: version third party crate feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Aug 7, 2024
1 parent 7714fea commit abaef62
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 134 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,41 +53,41 @@ jobs:
command: check
args: --workspace --no-default-features --features derive

- name: check --no-default-features --features smol_str
- name: check --no-default-features --features smol_str-02
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --no-default-features --features smol_str
args: --workspace --no-default-features --features smol_str-02

- name: check --no-default-features --features smallvec
- name: check --no-default-features --features smallvec-1
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --no-default-features --features smallvec
args: --workspace --no-default-features --features smallvec-1

- name: check --no-default-features --features smartstring
- name: check --no-default-features --features smartstring-1
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --no-default-features --features smartstring
args: --workspace --no-default-features --features smartstring-1

- name: check --no-default-features --features ahash
- name: check --no-default-features --features ahash-08
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --no-default-features --features ahash
args: --workspace --no-default-features --features ahash-08

- name: check --no-default-features --features chrono
- name: check --no-default-features --features chrono-04
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --no-default-features --features chrono
args: --workspace --no-default-features --features chrono-04

- name: check --no-default-features --features chrono-clock
- name: check --no-default-features --features chrono-clock-04
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --no-default-features --features chrono-clock
args: --workspace --no-default-features --features chrono-clock-04

- name: check --all-features
uses: actions-rs/cargo@v1
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ syn = { version = "2.0.38", features = [ "full" ] }
quote = "1.0.33"
proc-macro2 = "1.0.69"
test-case = "3.3.1"
smol_str = { version = "0.2.2", default-features = false }
smallvec = { version = "1.13.2", default-features = false }
smartstring = { version = "1.0.1", default-features = false }
ahash = { version = "0.8.11", default-features = false }
chrono = { version = "0.4.38", default-features = false }
smol_str-02 = { package = "smol_str", version = "0.2.2", default-features = false }
smallvec-1 = { package = "smallvec", version = "1.13.2", default-features = false }
smartstring-1 = { package = "smartstring", version = "1.0.1", default-features = false }
ahash-08 = { package = "ahash", version = "0.8.11", default-features = false }
chrono-04 = { package = "chrono", version = "0.4.38", default-features = false }
14 changes: 7 additions & 7 deletions bounded-static/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ alloc = []
collections = [ "alloc" ]

# Enable impls of [To|Into]BoundedStatic for other types in std.
std = [ "alloc", "ahash?/std", "chrono?/std" ]
std = [ "alloc", "ahash-08?/std", "chrono-04?/std" ]

# Enable the ToStatic custom derive macro.
derive = [ "bounded-static-derive" ]

# Enable the clock feature for chrono.
chrono-clock = [ "chrono", "chrono/clock" ]
chrono-clock-04 = [ "chrono-04", "chrono-04/clock" ]

[dependencies]
bounded-static-derive = { workspace = true, optional = true }
smol_str = { workspace = true, optional = true, default-features = false }
smallvec = { workspace = true, optional = true, default-features = false }
smartstring = { workspace = true, optional = true, default-features = false }
ahash = { workspace = true, optional = true, default-features = false }
chrono = { workspace = true, optional = true, default-features = false }
smol_str-02 = { workspace = true, optional = true, default-features = false }
smallvec-1 = { workspace = true, optional = true, default-features = false }
smartstring-1 = { workspace = true, optional = true, default-features = false }
ahash-08 = { workspace = true, optional = true, default-features = false }
chrono-04 = { workspace = true, optional = true, default-features = false }

[dev-dependencies]
test-case.workspace = true
Expand Down
Loading

0 comments on commit abaef62

Please sign in to comment.