Skip to content

Commit 73db136

Browse files
committed
#feature - #[cfg(feature = "mssql-integrated-auth")]
1 parent 61a854a commit 73db136

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

canyon_connection/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ lazy_static = "1.4.0"
2424
serde = { version = "1.0.138", features = ["derive"] }
2525
toml = "0.7.3"
2626

27+
[features]
28+
mssql-integrated-auth = []
29+

canyon_connection/src/canyon_database_connector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ impl DatabaseConnection {
9595
crate::datasources::SqlServerAuth::Basic { username, password } => {
9696
AuthMethod::sql_server(username, password)
9797
}
98+
#[cfg(feature = "mssql-integrated-auth")]
9899
crate::datasources::SqlServerAuth::Integrated => AuthMethod::Integrated,
99100
},
100101
});

canyon_connection/src/datasources.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ pub enum PostgresAuth {
9595
pub enum SqlServerAuth {
9696
#[serde(alias = "Basic", alias = "basic")]
9797
Basic { username: String, password: String },
98+
#[cfg(feature = "mssql-integrated-auth")]
9899
#[serde(alias = "Integrated", alias = "integrated")]
99100
Integrated,
100101
}

0 commit comments

Comments
 (0)