Make sql2 mandatory in the binary (#3722)

This commit is contained in:
Rushmore Mushambi 2024-03-19 14:34:38 +02:00 committed by GitHub
parent 81870799ae
commit 0fc410dec2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -97,6 +97,8 @@ jobs:
run: cargo vet
- name: Check dependencies for unauthorized access
env:
RUSTFLAGS: "--cfg surrealdb_unstable"
run: cargo acl -n
- name: Dependency check failure

View file

@ -20,7 +20,7 @@ http = ["surrealdb/http"]
http-compression = []
ml = ["surrealdb/ml"]
jwks = ["surrealdb/jwks"]
sql2 = ["surrealdb/sql2"]
sql2 = [] # Deprecated since v1.4
parser2 = ["surrealdb/parser2"]
performance-profiler = ["dep:pprof"]
@ -83,6 +83,7 @@ surrealdb = { version = "1", path = "lib", features = [
"protocol-http",
"protocol-ws",
"rustls",
"sql2"
] }
tempfile = "3.8.1"
thiserror = "1.0.50"

View file

@ -184,7 +184,6 @@ pub async fn init(
dbs::init(dbs).await?;
// Start the node agent
let (tasks, task_chans) = start_tasks(
#[cfg(feature = "sql2")]
&config::CF.get().unwrap().engine.unwrap_or_default(),
DB.get().unwrap().clone(),
);