🦀 Rust crate
The ACORN CLI application is built on top of the acorn-lib Rust crate. The acorn-lib library provides core functionalities for working with ACORN schemas, validating persistent identifiers1, and generating artifacts.
Installation
-
Add
acorn-libas a dependency in yourCargo.toml2[dependencies] acorn-lib = "0.1.45" -
Use
acorn-libfunctions in your Rust code#![allow(unused)] fn main() { use acorn::schema::validate::{is_ark, is_doi, is_orcid, is_ror}; assert!(is_ark("ark:/1234/w5678")); assert!(is_doi("10.11578/dc.20250604.1")); assert!(is_orcid("https://orcid.org/0000-0002-2057-9115")); assert!(is_ror("01qz5mb56")); } -
If you want to use the full capability of
acorn-libto build your own CLI app, be sure to include the following in yourCargo.tomlto enable thedoctorandpowerpointfeatures3[dependencies] acorn-lib = { version = "0.1.45", features = ["doctor", "powerpoint"] }