diff --git a/Cargo.lock b/Cargo.lock index bf4506da0..fef20e59a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2139,6 +2139,13 @@ version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" +[[package]] +name = "wdl" +version = "0.1.0" +dependencies = [ + "wdl-grammar", +] + [[package]] name = "wdl-grammar" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index f20a43b06..4489b4cef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,11 @@ [workspace] -members = ["wdl-grammar"] +members = ["wdl", "wdl-grammar"] resolver = "2" [workspace.package] license = "MIT OR Apache-2.0" edition = "2021" +version = "0.1.0" [workspace.dependencies] clap = { version = "4.4.7", features = ["derive"] } diff --git a/wdl/Cargo.toml b/wdl/Cargo.toml new file mode 100644 index 000000000..1f3aa4785 --- /dev/null +++ b/wdl/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "wdl" +version.workspace = true +authors = ["Clay McLeod "] +license.workspace = true +edition.workspace = true +description = "Workflow Description Language (WDL) document parsing and linting" +homepage = "https://github.com/stjude-rust-labs/wdl" +repository = "https://github.com/stjude-rust-labs/wdl" +documentation = "https://docs.rs/wdl" +readme = "../README.md" + +[dependencies] +wdl-grammar = { path = "../wdl-grammar", version = "0.1.0", optional = true } + +[features] +default = [] +grammar = ["dep:wdl-grammar"] \ No newline at end of file diff --git a/wdl/src/lib.rs b/wdl/src/lib.rs new file mode 100644 index 000000000..062358fa6 --- /dev/null +++ b/wdl/src/lib.rs @@ -0,0 +1,7 @@ +//! Workflow Description Language (WDL) document parsing and linting. + +#![warn(missing_docs)] + +#[cfg(feature = "grammar")] +#[doc(inline)] +pub use wdl_grammar as grammar;