Skip to content

Commit

Permalink
fix: update cargo and no_run block
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfonseca committed Jun 23, 2024
1 parent 3485ec7 commit 4629591
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ license = "MIT"
repository = "https://github.com/luizfonseca/acme-v2"
readme = "README.md"
version = "0.9.1"
authors = ["Luiz Fonseca <[email protected]>", "Martin Algesten <[email protected]>"]
authors = [
"Luiz Fonseca <[email protected]>",
"Martin Algesten <[email protected]>",
]
keywords = ["letsencrypt", "acme"]
categories = ["web-programming", "api-bindings"]
edition = "2018"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ This library is a fork of [acme-lib](https://github.com/algesten/acme-lib) while
## Example

```rust
use acme_lib::{Error, Directory, DirectoryUrl};
use acme_lib::persist::FilePersist;
use acme_lib::create_p384_key;
use acme_v2::{Error, Directory, DirectoryUrl};
use acme_v2::persist::FilePersist;
use acme_v2::create_p384_key;

fn request_cert() -> Result<(), Error> {

Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//! # Example
//!
//! ```no_run
//! use acme_lib::{Error, Directory, DirectoryUrl};
//! use acme_lib::persist::FilePersist;
//! use acme_lib::create_p384_key;
//! use acme_v2::{Error, Directory, DirectoryUrl};
//! use acme_v2::persist::FilePersist;
//! use acme_v2::create_p384_key;
//!
//! fn request_cert() -> Result<(), Error> {
//!
Expand Down
12 changes: 6 additions & 6 deletions src/order/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ impl<P: Persist> Auth<P> {
/// The challenge will be accessed over HTTP (not HTTPS), for obvious reasons.
///
/// ```no_run
/// use acme_lib::persist::Persist;
/// use acme_lib::order::Auth;
/// use acme_lib::Error;
/// use acme_v2::persist::Persist;
/// use acme_v2::order::Auth;
/// use acme_v2::Error;
/// use std::fs::File;
/// use std::io::Write;
///
Expand Down Expand Up @@ -103,9 +103,9 @@ impl<P: Persist> Auth<P> {
/// The <proof> contains the signed token proving this account update it.
///
/// ```no_run
/// use acme_lib::persist::Persist;
/// use acme_lib::order::Auth;
/// use acme_lib::Error;
/// use acme_v2::persist::Persist;
/// use acme_v2::order::Auth;
/// use acme_v2::Error;
///
/// fn dns_authorize<P: Persist>(auth: &Auth<P>) -> Result<(), Error> {
/// let challenge = auth.dns_challenge();
Expand Down

0 comments on commit 4629591

Please sign in to comment.