From 8af87db3ce88eef85f19b36319510c0fe345e491 Mon Sep 17 00:00:00 2001 From: Jovansonlee Cesar Date: Sat, 29 Feb 2020 02:09:58 +0800 Subject: Expose the with-dom feature in svgbob, this is to allow usage of the generated node readily usable as is in sauron projects, provided they uses the same version of sauron library --- Cargo.lock | 4 ---- svgbob/Cargo.toml | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5a55d57..adab3a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -468,8 +468,6 @@ dependencies = [ [[package]] name = "sauron" version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "987022bf1b21c2d5d5cbd02af2af0a9c78b954b1e8b493e177250e43e5f6f28a" dependencies = [ "cfg-if", "js-sys", @@ -484,8 +482,6 @@ dependencies = [ [[package]] name = "sauron_vdom" version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f60ed6fcda6e9822203da7ecf0c04d14e6e85475992ada0589e0ad357e3f3179" dependencies = [ "log", ] diff --git a/svgbob/Cargo.toml b/svgbob/Cargo.toml index b110a82..adcf92a 100644 --- a/svgbob/Cargo.toml +++ b/svgbob/Cargo.toml @@ -13,9 +13,12 @@ license = "Apache-2.0" nalgebra = "0.18.0" ncollide2d = "0.19.1" lazy_static = "1.3.0" -sauron = { version = "0.22.0", default-features = false, features = ["with-dom"]} +sauron = { version = "0.22.0", path="../../sauron", default-features = false} unicode-width = "0.1.5" itertools = "0.8.0" pom = { version = "3.1.0" } +[features] +with-dom = ["sauron/with-dom"] + -- cgit v1.2.3