diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..25a84f3 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "rpl-patterns" +version = "0.1.0" +edition = "2024" +description = "Official RPL pattern collection" +license = "MPL-2.0" + +[package.metadata.rpl] +path = ["patterns"] + +[package.metadata.rpl.groups] +all = ["."] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..6447148 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,6 @@ +use std::path::PathBuf; + +/// Return the absolute path to the bundled RPL patterns. +pub fn patterns_root() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("patterns") +}