Skip to content

Commit

Permalink
Remove extern crate example in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenry authored and djc committed Nov 18, 2024
1 parent 72369d3 commit 12d6533
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Simple Rust library to generate X.509 certificates.

```Rust
extern crate rcgen;
use rcgen::{generate_simple_self_signed, CertifiedKey};
// Generate a certificate that's valid for "localhost" and "hello.world.example"
let subject_alt_names = vec!["hello.world.example".to_string(),
Expand Down
1 change: 0 additions & 1 deletion rcgen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ a key pair to call [`CertificateParams::signed_by()`] or [`CertificateParams::se
## Example
```
extern crate rcgen;
use rcgen::{generate_simple_self_signed, CertifiedKey};
# fn main () {
// Generate a certificate that's valid for "localhost" and "hello.world.example"
Expand Down

0 comments on commit 12d6533

Please sign in to comment.