diff --git a/Cargo.toml b/Cargo.toml index d1a3fc1d..41b900b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,31 +1,4 @@ -[package] -name = "rudf" -version = "0.0.1" -authors = ["Tpt "] -license = "MIT/Apache-2.0" -readme = "../README.md" -keywords = ["RDF", "N-Triples", "Turtle", "RDF/XML", "SPARQL"] -repository = "https://github.com/Tpt/rudf" -description = """ -An RDF and SPARQL library in Rust -""" -build = "build.rs" - -[badges] -travis-ci = { repository = "Tpt/rudf" } - -[dependencies] -error-chain = "0.12" -lazy_static = "1" -rocksdb = "0.10" -url = "1" -uuid = { version = "0.7", features = ["v4"] } -bzip2 = "0.3" -byteorder = "1" -quick-xml = "0.13" - -[build-dependencies] -peg = "0.5" - -[dev-dependencies] -reqwest = "0.9" \ No newline at end of file +[workspace] +members = [ + "lib" +] \ No newline at end of file diff --git a/README.md b/README.md index 4e2b14a1..9d48c1f5 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This library is a work in progress of a [RDF](https://www.w3.org/RDF/) stack imp Its goal is to provide a compliant, safe and fast implementation of W3C specifications in Rust. +The `lib` directory contains the Rust library code. + [![Build Status](https://travis-ci.org/Tpt/rudf.svg?branch=master)](https://travis-ci.org/Tpt/rudf) [![dependency status](https://deps.rs/repo/github/Tpt/rudf/status.svg)](https://deps.rs/repo/github/Tpt/rudf) diff --git a/lib/Cargo.toml b/lib/Cargo.toml new file mode 100644 index 00000000..d1a3fc1d --- /dev/null +++ b/lib/Cargo.toml @@ -0,0 +1,31 @@ +[package] +name = "rudf" +version = "0.0.1" +authors = ["Tpt "] +license = "MIT/Apache-2.0" +readme = "../README.md" +keywords = ["RDF", "N-Triples", "Turtle", "RDF/XML", "SPARQL"] +repository = "https://github.com/Tpt/rudf" +description = """ +An RDF and SPARQL library in Rust +""" +build = "build.rs" + +[badges] +travis-ci = { repository = "Tpt/rudf" } + +[dependencies] +error-chain = "0.12" +lazy_static = "1" +rocksdb = "0.10" +url = "1" +uuid = { version = "0.7", features = ["v4"] } +bzip2 = "0.3" +byteorder = "1" +quick-xml = "0.13" + +[build-dependencies] +peg = "0.5" + +[dev-dependencies] +reqwest = "0.9" \ No newline at end of file diff --git a/build.rs b/lib/build.rs similarity index 100% rename from build.rs rename to lib/build.rs diff --git a/src/errors.rs b/lib/src/errors.rs similarity index 100% rename from src/errors.rs rename to lib/src/errors.rs diff --git a/src/lib.rs b/lib/src/lib.rs similarity index 100% rename from src/lib.rs rename to lib/src/lib.rs diff --git a/src/model/blank_node.rs b/lib/src/model/blank_node.rs similarity index 100% rename from src/model/blank_node.rs rename to lib/src/model/blank_node.rs diff --git a/src/model/dataset.rs b/lib/src/model/dataset.rs similarity index 100% rename from src/model/dataset.rs rename to lib/src/model/dataset.rs diff --git a/src/model/literal.rs b/lib/src/model/literal.rs similarity index 100% rename from src/model/literal.rs rename to lib/src/model/literal.rs diff --git a/src/model/mod.rs b/lib/src/model/mod.rs similarity index 100% rename from src/model/mod.rs rename to lib/src/model/mod.rs diff --git a/src/model/named_node.rs b/lib/src/model/named_node.rs similarity index 100% rename from src/model/named_node.rs rename to lib/src/model/named_node.rs diff --git a/src/model/triple.rs b/lib/src/model/triple.rs similarity index 100% rename from src/model/triple.rs rename to lib/src/model/triple.rs diff --git a/src/model/vocab.rs b/lib/src/model/vocab.rs similarity index 100% rename from src/model/vocab.rs rename to lib/src/model/vocab.rs diff --git a/src/rio/mod.rs b/lib/src/rio/mod.rs similarity index 100% rename from src/rio/mod.rs rename to lib/src/rio/mod.rs diff --git a/src/rio/ntriples/mod.rs b/lib/src/rio/ntriples/mod.rs similarity index 100% rename from src/rio/ntriples/mod.rs rename to lib/src/rio/ntriples/mod.rs diff --git a/src/rio/ntriples/ntriples_grammar.rustpeg b/lib/src/rio/ntriples/ntriples_grammar.rustpeg similarity index 100% rename from src/rio/ntriples/ntriples_grammar.rustpeg rename to lib/src/rio/ntriples/ntriples_grammar.rustpeg diff --git a/src/rio/turtle/mod.rs b/lib/src/rio/turtle/mod.rs similarity index 100% rename from src/rio/turtle/mod.rs rename to lib/src/rio/turtle/mod.rs diff --git a/src/rio/turtle/turtle_grammar.rustpeg b/lib/src/rio/turtle/turtle_grammar.rustpeg similarity index 100% rename from src/rio/turtle/turtle_grammar.rustpeg rename to lib/src/rio/turtle/turtle_grammar.rustpeg diff --git a/src/rio/utils.rs b/lib/src/rio/utils.rs similarity index 100% rename from src/rio/utils.rs rename to lib/src/rio/utils.rs diff --git a/src/rio/xml.rs b/lib/src/rio/xml.rs similarity index 100% rename from src/rio/xml.rs rename to lib/src/rio/xml.rs diff --git a/src/sparql/algebra.rs b/lib/src/sparql/algebra.rs similarity index 100% rename from src/sparql/algebra.rs rename to lib/src/sparql/algebra.rs diff --git a/src/sparql/eval.rs b/lib/src/sparql/eval.rs similarity index 100% rename from src/sparql/eval.rs rename to lib/src/sparql/eval.rs diff --git a/src/sparql/mod.rs b/lib/src/sparql/mod.rs similarity index 100% rename from src/sparql/mod.rs rename to lib/src/sparql/mod.rs diff --git a/src/sparql/parser.rs b/lib/src/sparql/parser.rs similarity index 100% rename from src/sparql/parser.rs rename to lib/src/sparql/parser.rs diff --git a/src/sparql/sparql_grammar.rustpeg b/lib/src/sparql/sparql_grammar.rustpeg similarity index 100% rename from src/sparql/sparql_grammar.rustpeg rename to lib/src/sparql/sparql_grammar.rustpeg diff --git a/src/sparql/xml_results.rs b/lib/src/sparql/xml_results.rs similarity index 100% rename from src/sparql/xml_results.rs rename to lib/src/sparql/xml_results.rs diff --git a/src/store/isomorphism.rs b/lib/src/store/isomorphism.rs similarity index 100% rename from src/store/isomorphism.rs rename to lib/src/store/isomorphism.rs diff --git a/src/store/memory.rs b/lib/src/store/memory.rs similarity index 100% rename from src/store/memory.rs rename to lib/src/store/memory.rs diff --git a/src/store/mod.rs b/lib/src/store/mod.rs similarity index 100% rename from src/store/mod.rs rename to lib/src/store/mod.rs diff --git a/src/store/numeric_encoder.rs b/lib/src/store/numeric_encoder.rs similarity index 100% rename from src/store/numeric_encoder.rs rename to lib/src/store/numeric_encoder.rs diff --git a/src/store/rocksdb.rs b/lib/src/store/rocksdb.rs similarity index 100% rename from src/store/rocksdb.rs rename to lib/src/store/rocksdb.rs diff --git a/src/store/store.rs b/lib/src/store/store.rs similarity index 100% rename from src/store/store.rs rename to lib/src/store/store.rs diff --git a/src/utils.rs b/lib/src/utils.rs similarity index 100% rename from src/utils.rs rename to lib/src/utils.rs diff --git a/tests/rdf_test_cases.rs b/lib/tests/rdf_test_cases.rs similarity index 100% rename from tests/rdf_test_cases.rs rename to lib/tests/rdf_test_cases.rs diff --git a/tests/sparql_test_cases.rs b/lib/tests/sparql_test_cases.rs similarity index 100% rename from tests/sparql_test_cases.rs rename to lib/tests/sparql_test_cases.rs