to squash: rename datomish-parser to datomish-query-parser
This commit is contained in:
parent
a5fa08e748
commit
bcf2c46392
6 changed files with 11 additions and 11 deletions
|
@ -2,5 +2,5 @@ language: rust
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
- cargo test --verbose -p datomish-parser
|
- cargo test --verbose -p datomish-query-parser
|
||||||
- cargo test --verbose -p datomish-cli
|
- cargo test --verbose -p datomish-cli
|
|
@ -4,8 +4,8 @@ version = "0.4.0"
|
||||||
authors = ["Richard Newman <rnewman@twinql.com>", "Nicholas Alexander <nalexander@mozilla.com>"]
|
authors = ["Richard Newman <rnewman@twinql.com>", "Nicholas Alexander <nalexander@mozilla.com>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
[dependencies.datomish-parser]
|
[dependencies.datomish-query-parser]
|
||||||
path = "parser"
|
path = "query-parser"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
[dev-dependencies.datomish-cli]
|
[dev-dependencies.datomish-cli]
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "datomish-parser"
|
|
||||||
version = "0.0.1"
|
|
3
query-parser/Cargo.toml
Normal file
3
query-parser/Cargo.toml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[package]
|
||||||
|
name = "datomish-query-parser"
|
||||||
|
version = "0.0.1"
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
// This file is just a stub
|
// This file is just a stub
|
||||||
pub fn get_name() -> String {
|
pub fn get_name() -> String {
|
||||||
return String::from("datomish-parser");
|
return String::from("datomish-query-parser");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
@ -19,6 +19,6 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn it_works() {
|
fn it_works() {
|
||||||
assert_eq!(String::from("datomish-parser"), get_name());
|
assert_eq!(String::from("datomish-query-parser"), get_name());
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||||
// specific language governing permissions and limitations under the License.
|
// specific language governing permissions and limitations under the License.
|
||||||
|
|
||||||
extern crate datomish_parser;
|
extern crate datomish_query_parser;
|
||||||
|
|
||||||
pub fn get_name() -> String {
|
pub fn get_name() -> String {
|
||||||
return String::from("datomish");
|
return String::from("datomish");
|
||||||
|
@ -16,7 +16,7 @@ pub fn get_name() -> String {
|
||||||
|
|
||||||
// Just an example of using a dependency
|
// Just an example of using a dependency
|
||||||
pub fn get_parser_name() -> String {
|
pub fn get_parser_name() -> String {
|
||||||
return datomish_parser::get_name();
|
return datomish_query_parser::get_name();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn add_two(a: i32) -> i32 {
|
pub fn add_two(a: i32) -> i32 {
|
||||||
|
@ -34,6 +34,6 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn can_import_parser() {
|
fn can_import_parser() {
|
||||||
assert_eq!(String::from("datomish-parser"), get_parser_name());
|
assert_eq!(String::from("datomish-query-parser"), get_parser_name());
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue