Re-organise into workspace.
This commit is contained in:
parent
5b49dfad3c
commit
c0ac53f54b
16 changed files with 25 additions and 15 deletions
15
Cargo.toml
15
Cargo.toml
|
@ -1,10 +1,5 @@
|
|||
[package]
|
||||
name = "type-system"
|
||||
version = "0.1.0"
|
||||
authors = ["James Harton <james@automat.nz>"]
|
||||
|
||||
[dependencies]
|
||||
im = "11.0.1"
|
||||
wrc = "0.3.0"
|
||||
pest = "1.0.6"
|
||||
pest_derive = "1.0.8"
|
||||
[workspace]
|
||||
members = [
|
||||
"compiler",
|
||||
"parser"
|
||||
]
|
||||
|
|
6
compiler/Cargo.toml
Normal file
6
compiler/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "huia-compiler"
|
||||
version = "0.1.0"
|
||||
authors = ["James Harton <james@automat.nz>"]
|
||||
|
||||
[dependencies]
|
4
compiler/src/lib.rs
Normal file
4
compiler/src/lib.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
mod context;
|
||||
mod signatures;
|
||||
mod static_strings;
|
||||
mod types;
|
8
parser/Cargo.toml
Normal file
8
parser/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "huia-parser"
|
||||
version = "0.1.0"
|
||||
authors = ["James Harton <james@automat.nz>"]
|
||||
|
||||
[dependencies]
|
||||
pest = "1.0.6"
|
||||
pest_derive = "1.0.8"
|
|
@ -3,7 +3,7 @@ const _GRAMMAR: &'static str = include_str!("grammar.pest");
|
|||
// use pest::Parser;
|
||||
#[derive(Parser)]
|
||||
#[grammar = "grammar.pest"]
|
||||
struct Grammar;
|
||||
pub struct Grammar;
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
|
@ -3,8 +3,5 @@ extern crate pest;
|
|||
#[macro_use]
|
||||
extern crate pest_derive;
|
||||
|
||||
mod context;
|
||||
mod grammar;
|
||||
mod signatures;
|
||||
mod static_strings;
|
||||
mod types;
|
||||
pub use grammar::Grammar;
|
Reference in a new issue