Upgrades to peg 0.6

Improves performances by 50%
pull/23/head
Tpt 5 years ago
parent 03d08917c4
commit ee39f162aa
  1. 5
      lib/Cargo.toml
  2. 5
      lib/build.rs
  3. 1948
      lib/src/sparql/parser.rs
  4. 1098
      lib/src/sparql/sparql_grammar.rustpeg

@ -9,7 +9,6 @@ repository = "https://github.com/Tpt/oxigraph"
description = """ description = """
An RDF and SPARQL library in Rust An RDF and SPARQL library in Rust
""" """
build = "build.rs"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
@ -28,6 +27,7 @@ rio_turtle = "0.4"
rio_xml = "0.4" rio_xml = "0.4"
hex = "0.4" hex = "0.4"
nom = "5" nom = "5"
peg = "0.6"
[target.'cfg(target_arch = "wasm32")'.dependencies] [target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3" js-sys = "0.3"
@ -39,9 +39,6 @@ criterion = "0.3"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies] [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3" wasm-bindgen-test = "0.3"
[build-dependencies]
peg = "0.5"
[[bench]] [[bench]]
name = "sparql_query" name = "sparql_query"
harness = false harness = false

@ -1,5 +0,0 @@
use peg;
fn main() {
peg::cargo_build("src/sparql/sparql_grammar.rustpeg");
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save