Skip to content

Commit

Permalink
Add more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
baztar committed Dec 23, 2024
1 parent 3fef815 commit 63a6c54
Show file tree
Hide file tree
Showing 4 changed files with 350 additions and 2 deletions.
244 changes: 244 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ thiserror = "1"
tokio = { version = "1", default-features = false, features = ["time", "io-util"], optional = true }

[dev-dependencies]
async-native-tls = { version = "0.5", default-features = false }
env_logger = "^0.9"
glob = "^0.3"
criterion = "^0.3"
Expand All @@ -39,7 +40,17 @@ name = "send"
path = "examples/send.rs"
required-features = ["runtime-tokio"]

[[example]]
name = "ssl-xoauth2"
path = "examples/ssl-xoauth2.rs"
required-features = ["runtime-tokio"]

[[example]]
name = "starttls-xoauth2"
path = "examples/starttls-xoauth2.rs"
required-features = ["runtime-tokio"]

[features]
default = ["runtime-tokio"]
runtime-async-std = ["async-std"]
runtime-tokio = ["tokio"]
runtime-async-std = ["async-std", "async-native-tls/runtime-async-std"]
runtime-tokio = ["tokio", "async-native-tls/runtime-tokio"]
Loading

0 comments on commit 63a6c54

Please sign in to comment.