Crates.io | cql2 |
lib.rs | cql2 |
version | |
source | src |
created_at | 2024-10-08 10:27:51.398175 |
updated_at | 2024-12-09 18:05:25.271608 |
description | Parse, validate, and convert Common Query Language (CQL2) text and JSON |
homepage | https://github.com/developmentseed/cql2-rs |
repository | https://github.com/developmentseed/cql2-rs |
max_upload_size | |
id | 1400999 |
Cargo.toml error: | TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Parse, validate, and convert Common Query Language (CQL2) text and JSON.
[dependencies]
cql = "0.3"
Then:
use cql2::Expr;
let expr: Expr = "landsat:scene_id = 'LC82030282019133LGN00'".parse().unwrap();
assert!(expr.is_valid());
println!("{}", expr.to_json().unwrap());
See the documentation for more.
See the cql2-cli README for details.
Responses may not match the input.
git clone git@github.com:developmentseed/cql2-rs.git
cd cql2-rs
uv sync
scripts/test
To lint all files:
scripts/lint
To serve the docs locally:
uv run mkdocs serve # http://127.0.0.1:8000/cql2-rs/
See CONTRIBUTING.md for more information about contributing to this project.
cql2-rs is licensed under the MIT license. See LICENSE for details.