enable encryption feature flag by default

This commit is contained in:
Avinash Sajjanshetty
2025-09-30 19:04:25 +05:30
parent c8111f9555
commit a360efa6e0
8 changed files with 3 additions and 13 deletions

View File

@@ -40,10 +40,6 @@ jobs:
python-version: "3.10" python-version: "3.10"
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
- name: Test Encryption
run: |
cargo test --features encryption --color=always --test integration_tests query_processing::encryption
cargo test --features encryption --color=always --lib storage::encryption
- name: Test Checksums - name: Test Checksums
run: | run: |
cargo test --features checksum --color=always --lib storage::checksum cargo test --features checksum --color=always --lib storage::checksum

View File

@@ -19,7 +19,6 @@ tracing.workspace = true
chrono = { workspace = true, default-features = false, features = ["clock"] } chrono = { workspace = true, default-features = false, features = ["clock"] }
[features] [features]
encryption = ["turso_core/encryption"]
browser = [] browser = []
tracing_release = ["turso_core/tracing_release"] tracing_release = ["turso_core/tracing_release"]
[build-dependencies] [build-dependencies]

View File

@@ -15,7 +15,6 @@ conn_raw_api = ["turso_core/conn_raw_api"]
experimental_indexes = [] experimental_indexes = []
antithesis = ["turso_core/antithesis"] antithesis = ["turso_core/antithesis"]
tracing_release = ["turso_core/tracing_release"] tracing_release = ["turso_core/tracing_release"]
encryption = ["turso_core/encryption"]
[dependencies] [dependencies]
turso_core = { workspace = true, features = ["io_uring"] } turso_core = { workspace = true, features = ["io_uring"] }

View File

@@ -14,7 +14,7 @@ name = "turso_core"
path = "lib.rs" path = "lib.rs"
[features] [features]
default = ["fs", "uuid", "time", "json", "series"] default = ["fs", "uuid", "time", "json", "series", "encryption"]
antithesis = ["dep:antithesis_sdk"] antithesis = ["dep:antithesis_sdk"]
tracing_release = ["tracing/release_max_level_info"] tracing_release = ["tracing/release_max_level_info"]
conn_raw_api = [] conn_raw_api = []

View File

@@ -8,7 +8,7 @@ name = "encryption-throughput"
path = "src/main.rs" path = "src/main.rs"
[dependencies] [dependencies]
turso = { workspace = true, features = ["encryption"] } turso = { workspace = true }
clap = { workspace = true, features = ["derive"] } clap = { workspace = true, features = ["derive"] }
tokio = { workspace = true, default-features = true, features = ["full"] } tokio = { workspace = true, default-features = true, features = ["full"] }
futures = { workspace = true } futures = { workspace = true }

View File

@@ -36,5 +36,4 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] }
tracing = { workspace = true } tracing = { workspace = true }
[features] [features]
encryption = ["turso_core/encryption"]
checksum = ["turso_core/checksum"] checksum = ["turso_core/checksum"]

View File

@@ -3,8 +3,6 @@ mod test_ddl;
mod test_read_path; mod test_read_path;
mod test_write_path; mod test_write_path;
mod encryption;
mod test_multi_thread; mod test_multi_thread;
mod test_transactions; mod test_transactions;
#[cfg(feature = "encryption")]
mod encryption;

View File

@@ -29,4 +29,3 @@ hex = "0.4.3"
[features] [features]
checksum = ["turso_core/checksum"] checksum = ["turso_core/checksum"]
encryption = ["turso_core/encryption"]