Skip to content

Commit f480075

Browse files
committed
Remove bigdecimal from default features
1 parent b612696 commit f480075

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ jobs:
334334
~/.cargo/git/db/
335335
key: ${{ runner.os }}-cargo-sqlite-tests-sqlite-${{ hashFiles('**/Cargo.toml') }}
336336
- uses: mozilla-actions/[email protected]
337-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-sqlite,runtime-${{ matrix.runtime }} --no-run
338-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-sqlite,runtime-${{ matrix.runtime }}
337+
- run: cargo test --test '*' --features tests-features,sqlx-sqlite,runtime-${{ matrix.runtime }} --no-run
338+
- run: cargo test --test '*' --features tests-features,sqlx-sqlite,runtime-${{ matrix.runtime }}
339339
- run: cargo test --manifest-path sea-orm-migration/Cargo.toml --test '*' --features sqlx-sqlite,runtime-${{ matrix.runtime }} --no-run
340340
- run: cargo test --manifest-path sea-orm-migration/Cargo.toml --test '*' --features sqlx-sqlite,runtime-${{ matrix.runtime }}
341341

@@ -364,7 +364,7 @@ jobs:
364364
key: ${{ runner.os }}-cargo-sqlite-tests-rusqlite-${{ hashFiles('**/Cargo.toml') }}
365365
- uses: mozilla-actions/[email protected]
366366
- working-directory: ./sea-orm-sync
367-
run: cargo test --test '*' --features default,rbac,schema-sync,rusqlite
367+
run: cargo test --test '*' --features tests-features,rusqlite
368368
- working-directory: ./sea-orm-sync/examples/quickstart
369369
run: cargo run
370370

@@ -414,8 +414,8 @@ jobs:
414414
~/.cargo/git/db/
415415
key: ${{ runner.os }}-cargo-mysql-tests-${{ hashFiles('**/Cargo.toml') }}
416416
- uses: mozilla-actions/[email protected]
417-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
418-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
417+
- run: cargo test --test '*' --features tests-features,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
418+
- run: cargo test --test '*' --features tests-features,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
419419
- run: cargo test --manifest-path sea-orm-migration/Cargo.toml --test '*' --features sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
420420
- run: cargo test --manifest-path sea-orm-migration/Cargo.toml --test '*' --features sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
421421

@@ -467,8 +467,8 @@ jobs:
467467
~/.cargo/git/db/
468468
key: ${{ runner.os }}-cargo-mariadb-tests-${{ hashFiles('**/Cargo.toml') }}
469469
- uses: mozilla-actions/[email protected]
470-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
471-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
470+
- run: cargo test --test '*' --features tests-features,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
471+
- run: cargo test --test '*' --features tests-features,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
472472

473473
postgres:
474474
name: Postgres
@@ -514,7 +514,7 @@ jobs:
514514
~/.cargo/git/db/
515515
key: ${{ runner.os }}-postgres-tests-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.toml') }}
516516
- uses: mozilla-actions/[email protected]
517-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
518-
- run: cargo test --test '*' --features default,rbac,schema-sync,sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
517+
- run: cargo test --test '*' --features tests-features,sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
518+
- run: cargo test --test '*' --features tests-features,sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
519519
- run: cargo test --manifest-path sea-orm-migration/Cargo.toml --test '*' --features sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }} --no-run
520520
- run: cargo test --manifest-path sea-orm-migration/Cargo.toml --test '*' --features sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ default = [
110110
"with-json",
111111
"with-chrono",
112112
"with-rust_decimal",
113-
"with-bigdecimal",
114113
"with-uuid",
115114
"with-time",
116115
"sqlite-use-returning-for-3_35",
@@ -172,6 +171,7 @@ sqlx-sqlite = [
172171
]
173172
sync = []
174173
tests-cfg = ["serde/derive"]
174+
tests-features = ["default", "rbac", "schema-sync", "with-bigdecimal"]
175175
with-bigdecimal = [
176176
"bigdecimal",
177177
"sea-query/with-bigdecimal",

sea-orm-sync/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ sqlx-postgres = []
136136
sqlx-sqlite = []
137137
sync = []
138138
tests-cfg = ["serde/derive"]
139+
tests-features = ["default", "rbac", "schema-sync", "with-bigdecimal"]
139140
with-bigdecimal = [
140141
"bigdecimal",
141142
"sea-query/with-bigdecimal",

0 commit comments

Comments
 (0)