diff options
-rw-r--r-- | Cargo.toml | 7 | ||||
-rw-r--r-- | examples/sql.rs | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml index f32ce6d..89c2d1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,11 @@ name = "kittybox-mf2" path = "src/bin/kittybox-mf2.rs" required-features = ["cli"] +[[example]] +name = "sql" +path = "examples/sql.rs" +required-features = ["sqlparser"] + [workspace] members = [".", "./util", "./templates", "./indieauth", "./templates-neo"] default-members = [".", "./util", "./templates", "./indieauth"] @@ -159,4 +164,4 @@ optional = true [dependencies.sqlparser] version = "0.44.0" features = ["serde", "serde_json"] -optional = true \ No newline at end of file +optional = true diff --git a/examples/sql.rs b/examples/sql.rs index c28f8dc..5d552da 100644 --- a/examples/sql.rs +++ b/examples/sql.rs @@ -1,3 +1,4 @@ +#![cfg(feature = "sqlparser")] use sqlparser::ast::Expr; #[derive(Debug, thiserror::Error)] |