{"id":28461449,"url":"https://github.com/chatmail/async-native-tls","last_synced_at":"2025-09-12T20:43:54.692Z","repository":{"id":44175594,"uuid":"227658708","full_name":"chatmail/async-native-tls","owner":"chatmail","description":"Native TLS for futures and async-std","archived":false,"fork":false,"pushed_at":"2025-06-05T19:21:43.000Z","size":60,"stargazers_count":72,"open_issues_count":9,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-02T02:46:18.760Z","etag":null,"topics":["async","chatmail","rust","tls"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chatmail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"chatmail"}},"created_at":"2019-12-12T17:16:20.000Z","updated_at":"2025-07-10T11:08:29.000Z","dependencies_parsed_at":"2024-06-18T22:48:31.848Z","dependency_job_id":"850c36a2-2a9d-4b64-b6b2-f2d9a5307896","html_url":"https://github.com/chatmail/async-native-tls","commit_stats":null,"previous_names":["async-email/async-native-tls"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/chatmail/async-native-tls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatmail%2Fasync-native-tls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatmail%2Fasync-native-tls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatmail%2Fasync-native-tls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatmail%2Fasync-native-tls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chatmail","download_url":"https://codeload.github.com/chatmail/async-native-tls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatmail%2Fasync-native-tls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274873613,"owners_count":25365824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","chatmail","rust","tls"],"created_at":"2025-06-07T03:30:47.652Z","updated_at":"2025-09-12T20:43:54.650Z","avatar_url":"https://github.com/chatmail.png","language":"Rust","funding_links":["https://opencollective.com/chatmail"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003easync-native-tls\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n \u003cstrong\u003e\n   Asynchronous Native TLS\n \u003c/strong\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Crates version --\u003e\n  \u003ca href=\"https://crates.io/crates/async-native-tls\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/async-native-tls.svg?style=flat-square\"\n    alt=\"Crates.io version\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Downloads --\u003e\n  \u003ca href=\"https://crates.io/crates/async-native-tls\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/d/async-native-tls.svg?style=flat-square\"\n      alt=\"Download\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- docs.rs docs --\u003e\n  \u003ca href=\"https://docs.rs/async-native-tls\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\"\n      alt=\"docs.rs docs\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch3\u003e\n    \u003ca href=\"https://docs.rs/async-native-tls\"\u003e\n      API Docs\n    \u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://github.com/async-email/async-native-tls/releases\"\u003e\n      Releases\n    \u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003e [Native TLS](https://crates.io/crates/native-tls) for [async-std](https://crates.io/crates/async-std) or [tokio](https://crates.io/crates/tokio).\n\nThis crate uses SChannel on Windows (via [schannel](https://crates.io/crates/schannel)), Secure Transport on \nOSX (via [security-framework](https://crates.io/crates/security-framework)), and OpenSSL (via [openssl](https://crates.io/crates/openssl)) on \nall other platforms.\n\n## Installation\n\n```sh\n$ cargo add async-native-tls\n```\n\n#### Cargo Feature Flags\n\n * `runtime-async-std` (on by default): Use the `async-std` runtime.\n\n * `runtime-tokio`: Use the `tokio` runtime. This is mutually exclusive with `runtime-async-std`.\n\n## Example\n\n#### async-std\n\n\u003e Requires `runtime-async-std` feature (on by default).\n\n```toml\n# Cargo.toml\n[dependencies]\nasync-native-tls = \"0.4\"\n```\n\n```rust\nuse async_std::prelude::*;\nuse async_std::net::TcpStream;\n\nlet stream = TcpStream::connect(\"google.com:443\").await?;\nlet mut stream = async_native_tls::connect(\"google.com\", stream).await?;\nstream.write_all(b\"GET / HTTP/1.0\\r\\n\\r\\n\").await?;\n\nlet mut res = Vec::new();\nstream.read_to_end(\u0026mut res).await?;\nprintln!(\"{}\", String::from_utf8_lossy(\u0026res));\n```\n\n#### tokio\n\n\u003e Requires `runtime-tokio` feature.\n\n```toml\n# Cargo.toml\n[dependencies]\nasync-native-tls = { version = \"0.4\", default-features = false, features = [ \"runtime-tokio\" ] }\n```\n\n```rust\nuse tokio::prelude::*;\nuse tokio::net::TcpStream;\n\nlet stream = TcpStream::connect(\"google.com:443\").await?;\nlet mut stream = async_native_tls::connect(\"google.com\", stream).await?;\nstream.write_all(b\"GET / HTTP/1.0\\r\\n\\r\\n\").await?;\n\nlet mut res = Vec::new();\nstream.read_to_end(\u0026mut res).await?;\nprintln!(\"{}\", String::from_utf8_lossy(\u0026res));\n```\n\n## Contributing\nWant to join us? Check out our [\"Contributing\" guide][contributing] and take a\nlook at some of these issues:\n\n- [Issues labeled \"good first issue\"][good-first-issue]\n- [Issues labeled \"help wanted\"][help-wanted]\n\n[contributing]: https://github.com/dignifiedquire/semver2/blob/master.github/CONTRIBUTING.md\n[good-first-issue]: https://github.com/dignifiedquire/semver2/labels/good%20first%20issue\n[help-wanted]: https://github.com/dignifiedquire/semver2/labels/help%20wanted\n\n## License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr/\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatmail%2Fasync-native-tls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatmail%2Fasync-native-tls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatmail%2Fasync-native-tls/lists"}