1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-License-Identifier: Apache-2.0
//! Packaged Substrait extension files.
//!
//! This crate bundles the Substrait specification's extension YAML files, the
//! text-based JSON schemas, and the function test cases, alongside Rust types
//! generated from the schemas with [`typify`](https://docs.rs/typify).
//!
//! Versions of this crate correspond to Substrait
//! [releases](https://github.com/substrait-io/substrait/releases).
//!
//! - [`text`] — types generated from the text schemas (e.g.
//! [`text::simple_extensions::SimpleExtensions`]), plus the raw schema
//! sources as consts (e.g. `text::SIMPLE_EXTENSIONS_SCHEMA`) for consumers
//! that validate raw YAML against the JSON schema.
//! - [`extensions`] — the embedded extension YAML files, the
//! [`extensions::EXTENSIONS`] map (keyed by file stem to the parsed
//! extension), and the [`extensions::SIMPLE_EXTENSIONS`] slice (keyed by URN
//! to the raw YAML source).
//! - [`testcases`] — the embedded function test case files.
/// Types generated from the Substrait text-based JSON schemas, plus the raw
/// schema sources as `&str` consts (e.g. `SIMPLE_EXTENSIONS_SCHEMA`).
/// The embedded Substrait core extension YAML files.
///
/// The contents of this module are auto-generated by `build.rs` and kept in
/// sync with the packaged extension files.
/// The embedded Substrait function test case files.