[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5570":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},5570,"rustls","rustls\u002Frustls","A modern TLS library in Rust","",null,"Rust",7443,839,81,76,0,4,13,58,12,85.07,"Other",false,"main",true,[26,27,28,29],"cryptography","rust","ssl","tls","2026-06-12 04:00:25","\u003Cp align=\"center\">\n  \u003Cimg width=\"512\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Frustls\u002Frustls\u002Fmain\u002Fadmin\u002Flogo\u002Frustls.svg\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\nRustls is a modern TLS library written in Rust.\n\u003C\u002Fp>\n\n# Status\n\nRustls is used in production at many organizations and projects. We aim to maintain\nreasonable API surface stability but the API may evolve as we make changes to accommodate\nnew features or performance improvements.\n\nWe have a [roadmap](ROADMAP.md) for our future plans. We also have [benchmarks](BENCHMARKING.md) to\nprevent performance regressions and to let you evaluate rustls on your target hardware.\n\nIf you'd like to help out, please see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Frustls\u002Frustls\u002Factions\u002Fworkflows\u002Fbuild.yml\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002Frustls\u002Frustls\u002Factions\u002Fworkflows\u002Fbuild.yml?query=branch%3Amain)\n[![Coverage Status (codecov.io)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Frustls\u002Frustls\u002Fbranch\u002Fmain\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Frustls\u002Frustls\u002F)\n[![Documentation](https:\u002F\u002Fdocs.rs\u002Frustls\u002Fbadge.svg)](https:\u002F\u002Fdocs.rs\u002Frustls\u002F)\n[![Chat](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F976380008299917365?logo=discord)](https:\u002F\u002Fdiscord.gg\u002FMCSB76RU96)\n[![OpenSSF Best Practices](https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F9034\u002Fbadge)](https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F9034)\n\nThe maintainers pronounce \"rustls\" as rustles (rather than rust-TLS), but we don't feel strongly\nabout it.\n\n## Changelog\n\nThe detailed list of changes in each release can be found at\nhttps:\u002F\u002Fgithub.com\u002Frustls\u002Frustls\u002Freleases.\n\n# Documentation\n\nhttps:\u002F\u002Fdocs.rs\u002Frustls\u002F\n\n# Approach\n\nRustls is a TLS library that aims to provide a good level of cryptographic security,\nrequires no configuration to achieve that security, and provides no unsafe features or\nobsolete cryptography by default.\n\nRustls implements TLS1.2 and TLS1.3 for both clients and servers. See [the full\nlist of protocol features](https:\u002F\u002Fdocs.rs\u002Frustls\u002Flatest\u002Frustls\u002Fmanual\u002F_04_features\u002Findex.html).\n\n### Platform support\n\nWhile Rustls itself is platform independent, it requires the use of cryptography primitives\nfor implementing the cryptography algorithms used in TLS. In Rustls, a\n[`crypto::CryptoProvider`] represents a collection of crypto primitive implementations.\n\nBy providing a custom instance of the [`crypto::CryptoProvider`] struct, you\ncan replace all cryptography dependencies of rustls.  This is a route to being portable\nto a wider set of architectures and environments, or compliance requirements.  See the\n[`crypto::CryptoProvider`] documentation for more details.\n\n[`crypto::CryptoProvider`]: https:\u002F\u002Fdocs.rs\u002Frustls\u002Flatest\u002Frustls\u002Fcrypto\u002Fstruct.CryptoProvider.html\n\n### Cryptography providers\n\nSince Rustls 0.22 it has been possible to choose the provider of the cryptographic primitives\nthat Rustls uses. This may be appealing if you have specific platform, compliance or feature\nrequirements.\n\nFrom 0.24, users must explicitly provide a crypto provider when constructing `ClientConfig` or\n`ServerConfig` instances. See the [`crypto::CryptoProvider`] documentation for more details.\n\n#### First-party providers\n\nThe Rustls project currently maintains two cryptography providers:\n\n* [`rustls-aws-lc-rs`] - a provider that uses the [`aws-lc-rs`] crate for cryptography.\nWhile this provider can be harder to build on [some platforms][aws-lc-rs-platforms-faq], it provides excellent\nperformance and a complete feature set (including post-quantum algorithms).\n* [`rustls-ring`] - a provider that uses the [`ring`] crate for cryptography. This\nprovider is easier to build on a variety of platforms, but has a more limited feature set\n(for example, it does not support post-quantum algorithms).\n\nThe Rustls team recommends using the [`rustls-aws-lc-rs`] crate for its complete feature set\nand performance. See [the aws-lc-rs FAQ][aws-lc-rs-platforms-faq] for more details of the\nplatform\u002Farchitecture support constraints in aws-lc-rs.\n\nSee the documentation for [`crypto::CryptoProvider`] for details on how providers are\nselected.\n\n(For rustls versions prior to 0.24, both of these providers were shipped as part of the rustls\ncrate, and Cargo features were used to select the preferred provider. The `aws-lc-rs` feature\nwas enabled by default.)\n\n[`rustls-aws-lc-rs`]: https:\u002F\u002Fcrates.io\u002Fcrates\u002Frustls-aws-lc-rs\n[`aws-lc-rs`]: https:\u002F\u002Fcrates.io\u002Fcrates\u002Faws-lc-rs\n[aws-lc-rs-platforms-faq]: https:\u002F\u002Faws.github.io\u002Faws-lc-rs\u002Ffaq.html#can-i-run-aws-lc-rs-on-x-platform-or-architecture\n[`rustls-ring`]: https:\u002F\u002Fcrates.io\u002Fcrates\u002Frustls-ring\n[`ring`]: https:\u002F\u002Fcrates.io\u002Fcrates\u002Fring\n\n#### Third-party providers\n\nThe community has also started developing third-party providers for Rustls:\n\n* [`boring-rustls-provider`] - a work-in-progress provider that uses [`boringssl`] for\ncryptography.\n* [`rustls-ccm`] - adds AES-CCM cipher suites (TLS 1.2 and 1.3) using [`RustCrypto`], for IoT\u002Fconstrained-device protocols (IEEE 2030.5, Matter, RFC 7925).\n* [`rustls-graviola`] - a provider that uses [`graviola`] for cryptography.\n* [`rustls-mbedtls-provider`] - a provider that uses [`mbedtls`] for cryptography.\n* [`rustls-openssl`] - a provider that uses [OpenSSL] for cryptography.\n* [`rustls-rustcrypto`] - an experimental provider that uses the crypto primitives\nfrom [`RustCrypto`] for cryptography.\n* [`rustls-symcrypt`] - a provider that uses Microsoft's [SymCrypt] library.\n* [`rustls-wolfcrypt-provider`] - a work-in-progress provider that uses [`wolfCrypt`] for cryptography.\n\n[`rustls-ccm`]: https:\u002F\u002Fgithub.com\u002Fjsulmont\u002Frustls-ccm\n[`rustls-graviola`]: https:\u002F\u002Fcrates.io\u002Fcrates\u002Frustls-graviola\n[`graviola`]: https:\u002F\u002Fgithub.com\u002Fctz\u002Fgraviola\n[`rustls-mbedtls-provider`]: https:\u002F\u002Fgithub.com\u002Ffortanix\u002Frustls-mbedtls-provider\n[`mbedtls`]: https:\u002F\u002Fgithub.com\u002FMbed-TLS\u002Fmbedtls\n[`rustls-openssl`]: https:\u002F\u002Fgithub.com\u002Ftofay\u002Frustls-openssl\n[OpenSSL]: https:\u002F\u002Fopenssl-library.org\u002F\n[`rustls-symcrypt`]: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Frustls-symcrypt\n[SymCrypt]: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSymCrypt\n[`boring-rustls-provider`]: https:\u002F\u002Fgithub.com\u002Fjanrueth\u002Fboring-rustls-provider\n[`boringssl`]: https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fboringssl\n[`rustls-rustcrypto`]: https:\u002F\u002Fgithub.com\u002FRustCrypto\u002Frustls-rustcrypto\n[`RustCrypto`]: https:\u002F\u002Fgithub.com\u002FRustCrypto\n[`rustls-wolfcrypt-provider`]: https:\u002F\u002Fgithub.com\u002FwolfSSL\u002Frustls-wolfcrypt-provider\n[`wolfCrypt`]: https:\u002F\u002Fwww.wolfssl.com\u002Fproducts\u002Fwolfcrypt\n\nSee the [Making a custom CryptoProvider] section of the documentation for more information\non this topic.\n\n[Making a custom CryptoProvider]: https:\u002F\u002Fdocs.rs\u002Frustls\u002Flatest\u002Frustls\u002Fcrypto\u002Fstruct.CryptoProvider.html#making-a-custom-cryptoprovider\n\n# Example code\n\nOur [examples] directory contains demos that show how to handle I\u002FO using the\n[`stream::Stream`] helper, as well as more complex asynchronous I\u002FO using [`mio`].\nIf you're already using Tokio for an async runtime you may prefer to use\n[`tokio-rustls`] instead of interacting with rustls directly.\n\nThe [`mio`] based examples are the most complete, and discussed below. Users\nnew to Rustls may prefer to look at the simple client\u002Fserver examples before\ndiving in to the more complex MIO examples.\n\n[examples]: examples\u002F\n[`stream::Stream`]: https:\u002F\u002Fdocs.rs\u002Frustls\u002Flatest\u002Frustls\u002Fstruct.Stream.html\n[`mio`]: https:\u002F\u002Fdocs.rs\u002Fmio\u002Flatest\u002Fmio\u002F\n[`tokio-rustls`]: https:\u002F\u002Fdocs.rs\u002Ftokio-rustls\u002Flatest\u002Ftokio_rustls\u002F\n\n## Client example program\n\nThe MIO client example program is named `tlsclient-mio`.\n\nSome sample runs:\n\n```\n$ cargo run --bin tlsclient-mio -- --http mozilla-modern.badssl.com\nHTTP\u002F1.1 200 OK\nServer: nginx\u002F1.6.2 (Ubuntu)\nDate: Wed, 01 Jun 2016 18:44:00 GMT\nContent-Type: text\u002Fhtml\nContent-Length: 644\n(...)\n```\n\nor\n\n```\n$ cargo run --bin tlsclient-mio -- --http expired.badssl.com\nTLS error: InvalidCertificate(Expired)\nConnection closed\n```\n\nRun `cargo run --bin tlsclient-mio -- --help` for more options.\n\n## Server example program\n\nThe MIO server example program is named `tlsserver-mio`.\n\nHere's a sample run; we start a TLS echo server, then connect to it with\n`openssl` and `tlsclient-mio`:\n\n```\n$ cargo run --bin tlsserver-mio -- --certs test-ca\u002Frsa-2048\u002Fend.fullchain --key test-ca\u002Frsa-2048\u002Fend.key -p 8443 echo &\n$ echo hello world | openssl s_client -ign_eof -quiet -connect localhost:8443\ndepth=2 CN = ponytown RSA CA\nverify error:num=19:self signed certificate in certificate chain\nhello world\n^C\n$ echo hello world | cargo run --bin tlsclient-mio -- --cafile test-ca\u002Frsa-2048\u002Fca.cert --port 8443 localhost\nhello world\n^C\n```\n\nRun `cargo run --bin tlsserver-mio -- --help` for more options.\n\n# License\n\nRustls is distributed under the following three licenses:\n\n- Apache License version 2.0.\n- MIT license.\n- ISC license.\n\nThese are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC\nrespectively.  You may use this software under the terms of any\nof these licenses, at your option.\n\n# Project Membership\n\n- Joe Birr-Pixton ([@ctz], Project Founder - full-time funded by [Prossimo])\n- Dirkjan Ochtman ([@djc], Co-maintainer)\n- Daniel McCarney ([@cpu], Co-maintainer)\n- Josh Aas ([@bdaehlie], Project Management)\n\n[@ctz]: https:\u002F\u002Fgithub.com\u002Fctz\n[@djc]: https:\u002F\u002Fgithub.com\u002Fdjc\n[@cpu]: https:\u002F\u002Fgithub.com\u002Fcpu\n[@bdaehlie]: https:\u002F\u002Fgithub.com\u002Fbdaehlie\n[Prossimo]: https:\u002F\u002Fwww.memorysafety.org\u002Finitiative\u002Frustls\u002F\n\n# Code of conduct\n\nThis project adopts the [Rust Code of Conduct](https:\u002F\u002Fwww.rust-lang.org\u002Fpolicies\u002Fcode-of-conduct).\nPlease email rustls-mod@googlegroups.com to report any instance of misconduct, or if you\nhave any comments or questions on the Code of Conduct.\n","Rustls 是一个用 Rust 语言编写的现代 TLS 库。它支持 TLS1.2 和 TLS1.3 协议，适用于客户端和服务器，并且默认配置下即可提供良好的加密安全性，无需额外配置。Rustls 的设计注重安全性和易用性，不包含不安全的功能或过时的加密算法。此外，通过自定义 `crypto::CryptoProvider` 结构体，用户可以替换底层的加密实现，从而满足特定平台、合规性或功能需求。这使得 Rustls 在多种架构和环境中具有高度的可移植性和灵活性。适合需要高性能、高安全性TLS连接的应用场景，如Web服务、物联网设备等。",2,"2026-06-11 03:03:59","top_language"]