-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to connect wit TLS #323
Comments
Hello, This looks like #317.
|
In case it helps anyone with the same issue, you can disable default features and enable rustls with: [dependencies]
tiberius = { version = "0.12.2", default-features = false, features = ["rustls"] } Going slightly further, you can selectively use rustls for macOS, and native-tls on all other platforms. This works around issues with macOS Security Framework having issues with Azure SQL Server, and does not impact other platforms: [target.'cfg(target_os = "macos")'.dependencies]
tiberius = { version = "0.12.2", default-features = false, features = ["chrono", "time", "tds73", "rust_decimal", "bigdecimal", "rustls"] }
# Different syntax to keep things narrow
[target.'cfg(not(target_os = "macos"))'.dependencies.tiberius]
version = "0.12.2"
default-features = false
features = ["chrono", "time", "tds73", "rust_decimal", "bigdecimal", "native-tls"] edit: TOML syntax |
@NTmatter Thanks work for me on macOS shananigangs |
I' have problems trying to connect to SQL Server with Tiberius.
I was trying to use rustls instead of the default, but I don't get Tiberius to compile
The Tiberius crate does not compile. Any ideas ?
The text was updated successfully, but these errors were encountered: