소스 검색

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 달 전
부모
커밋
80b6fa75ac
3개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 1
      sigma_compiler_core/src/lib.rs
  2. 0 0
      sigma_compiler_core/src/sigma/combiners.rs
  3. 1 1
      sigma_compiler_core/src/syntax.rs

+ 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;