File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 37
37
run : cargo build --all-targets
38
38
- name : cargo test
39
39
run : cargo test --all-targets
40
+ # https://github.com/rust-lang/cargo/issues/6669
41
+ - name : cargo test --doc
42
+ run : cargo test --doc
40
43
linting :
41
44
name : Lints, pinned toolchain
42
45
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -20,3 +20,6 @@ serde_json = "1.0.64"
20
20
tar = " 0.4.38"
21
21
thiserror = " 1"
22
22
oci-spec = " 0.7.0"
23
+
24
+ [dev-dependencies ]
25
+ anyhow = " 1.0.89"
Original file line number Diff line number Diff line change 18
18
//!
19
19
//! ```rust,no_run
20
20
//! # use ocidir::cap_std;
21
+ //! # use anyhow::{anyhow, Result};
21
22
//! # fn main() -> anyhow::Result<()> {
22
23
//! let d = cap_std::fs::Dir::open_ambient_dir("/path/to/ocidir", cap_std::ambient_authority())?;
23
24
//! let d = ocidir::OciDir::open(&d)?;
24
- //! println!("{:?}", d.read_manifest( )?);
25
+ //! println!("{:?}", d.read_index()?.ok_or_else(|| anyhow!("missing Image Index") )?);
25
26
//! # Ok(())
26
27
//! # }
27
28
//! ```
You can’t perform that action at this time.
0 commit comments