Selaa lähdekoodia

The submodules that would be useful to have in the lower-level `sigma` crate are for now included as submodules of a local `sigma` module

Ian Goldberg 4 kuukautta sitten
vanhempi
commit
80b6fa75ac

+ 6 - 1
sigma_compiler_core/src/lib.rs

@@ -4,7 +4,12 @@ use std::collections::HashMap;
 use syn::visit_mut::{self, VisitMut};
 use syn::{parse_quote, Expr, Ident, Token};
 
-mod combiners;
+/// The submodules that would be useful to have in the lower-level
+/// `sigma` crate are for now included as submodules of a local `sigma`
+/// module
+mod sigma {
+    pub mod combiners;
+}
 mod syntax;
 
 pub use syntax::{SigmaCompSpec, TaggedIdent, TaggedPoint, TaggedScalar, VarDict};

+ 0 - 0
sigma_compiler_core/src/combiners.rs → sigma_compiler_core/src/sigma/combiners.rs


+ 1 - 1
sigma_compiler_core/src/syntax.rs

@@ -1,4 +1,4 @@
-use super::combiners::StatementTree;
+use super::sigma::combiners::StatementTree;
 use quote::format_ident;
 use std::collections::HashMap;
 use syn::ext::IdentExt;