Commit fd214c48 authored by Jordan Petridis's avatar Jordan Petridis 🌱 Committed by Federico Mena Quintero

Initial switch to a cargo workspace.

parent 2c306032
......@@ -63,44 +63,44 @@ librsvg_@RSVG_API_MAJOR_VERSION@_la_SOURCES = \
rsvg.h \
$(NULL)
RUST_SOURCES = \
rust/Cargo.toml \
rust/build.rs \
rust/src/aspect_ratio.rs \
rust/src/attributes.rs \
rust/src/bbox.rs \
rust/src/chars.rs \
rust/src/clip_path.rs \
rust/src/cnode.rs \
rust/src/color.rs \
rust/src/coord_units.rs \
rust/src/drawing_ctx.rs \
rust/src/error.rs \
rust/src/gradient.rs \
rust/src/handle.rs \
rust/src/image.rs \
rust/src/length.rs \
rust/src/lib.rs \
rust/src/marker.rs \
rust/src/mask.rs \
rust/src/node.rs \
rust/src/opacity.rs \
rust/src/paint_server.rs \
rust/src/parsers.rs \
rust/src/path_builder.rs \
rust/src/path_parser.rs \
rust/src/pattern.rs \
rust/src/property_bag.rs \
rust/src/shapes.rs \
rust/src/space.rs \
rust/src/state.rs \
rust/src/stop.rs \
rust/src/structure.rs \
rust/src/text.rs \
rust/src/transform.rs \
rust/src/util.rs \
rust/src/viewbox.rs \
rust/src/viewport.rs
RUST_SOURCES = \
rust/Cargo.toml \
rust/rsvg_internals/build.rs \
rust/rsvg_internals/src/aspect_ratio.rs \
rust/rsvg_internals/src/attributes.rs \
rust/rsvg_internals/src/bbox.rs \
rust/rsvg_internals/src/chars.rs \
rust/rsvg_internals/src/clip_path.rs \
rust/rsvg_internals/src/cnode.rs \
rust/rsvg_internals/src/color.rs \
rust/rsvg_internals/src/coord_units.rs \
rust/rsvg_internals/src/drawing_ctx.rs \
rust/rsvg_internals/src/error.rs \
rust/rsvg_internals/src/gradient.rs \
rust/rsvg_internals/src/handle.rs \
rust/rsvg_internals/src/image.rs \
rust/rsvg_internals/src/length.rs \
rust/rsvg_internals/src/lib.rs \
rust/rsvg_internals/src/marker.rs \
rust/rsvg_internals/src/mask.rs \
rust/rsvg_internals/src/node.rs \
rust/rsvg_internals/src/opacity.rs \
rust/rsvg_internals/src/paint_server.rs \
rust/rsvg_internals/src/parsers.rs \
rust/rsvg_internals/src/path_builder.rs \
rust/rsvg_internals/src/path_parser.rs \
rust/rsvg_internals/src/pattern.rs \
rust/rsvg_internals/src/property_bag.rs \
rust/rsvg_internals/src/shapes.rs \
rust/rsvg_internals/src/space.rs \
rust/rsvg_internals/src/state.rs \
rust/rsvg_internals/src/stop.rs \
rust/rsvg_internals/src/structure.rs \
rust/rsvg_internals/src/text.rs \
rust/rsvg_internals/src/transform.rs \
rust/rsvg_internals/src/util.rs \
rust/rsvg_internals/src/viewbox.rs \
rust/rsvg_internals/src/viewport.rs
RUST_EXTRA = \
rust/Cargo.lock \
......@@ -139,7 +139,7 @@ dist-hook:
cp cargo-vendor-config .cargo/config)
$(RUST_LIB): $(RUST_SOURCES)
+cd $(top_srcdir)/rust && \
+cd $(top_srcdir)/rust/rsvg_internals && \
PKG_CONFIG_ALLOW_CROSS=1 \
PKG_CONFIG='$(PKG_CONFIG)' \
CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \
......
......@@ -268,7 +268,7 @@ dependencies = [
[[package]]
name = "regex"
version = "0.2.5"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)",
......@@ -300,7 +300,7 @@ dependencies = [
"pango-sys 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)",
"phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
......@@ -421,7 +421,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a"
"checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1"
"checksum rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "eba5f8cb59cc50ed56be8880a5c7b496bfd9bd26394e176bc67884094145c2c5"
"checksum regex 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "744554e01ccbd98fff8c457c3b092cd67af62a555a43bfe97ae8a0451f7799fa"
"checksum regex 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "5be5347bde0c48cfd8c3fdc0766cdfe9d8a755ef84d620d6794c778c91de8b2b"
"checksum regex-syntax 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8e931c58b93d86f080c734bfd2bce7dd0079ae2331235818133c8be7f422e20e"
"checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537"
"checksum smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "44db0ecb22921ef790d17ae13a3f6d15784183ff5f2a01aa32098c7498d2b4b9"
......
[package]
name = "rsvg_internals"
version = "0.0.1"
authors = ["Federico Mena Quintero <federico@gnome.org>"]
build = "build.rs"
[build-dependencies]
phf_codegen = "0.7.21"
[dependencies]
libc = "0.2"
downcast-rs = "^1.0.0"
regex = "^0.2.1"
itertools = "0.7.4"
pango = "0.3.0"
pango-sys = "0.5.0"
cssparser = "0.23"
lazy_static = "1.0.0"
phf = "0.7.21"
[dependencies.cairo-sys-rs]
version = "0.5.0"
#git = "https://github.com/gtk-rs/cairo.git"
#branch = "master"
#git = "https://github.com/federicomenaquintero/cairo.git"
#branch = "matrix-try-invert"
#git = "file:///home/federico/src/gtk-rs/cairo"
#features = ["png"]
[dependencies.cairo-rs]
version = "0.3.0"
#git = "https://github.com/gtk-rs/cairo.git"
#branch = "master"
#git = "file:///home/federico/src/gtk-rs/cairo"
#features = ["png"]
[dependencies.glib]
version = "0.4.0"
#git = "https://github.com/gtk-rs/glib.git"
#branch = "master"
[dependencies.glib-sys]
version = "0.5.0"
#git = "https://github.com/gtk-rs/sys"
#branch = "master"
[lib]
name = "rsvg_internals"
crate-type = ["staticlib"]
[workspace]
members = [
"rsvg_internals",
]
[profile.release]
lto = true
[package]
name = "rsvg_internals"
version = "0.0.1"
authors = ["Federico Mena Quintero <federico@gnome.org>"]
workspace = "../"
build = "build.rs"
[build-dependencies]
phf_codegen = "0.7.21"
[dependencies]
libc = "0.2"
downcast-rs = "^1.0.0"
regex = "^0.2.1"
itertools = "0.7.4"
pango = "0.3.0"
pango-sys = "0.5.0"
cssparser = "0.23"
lazy_static = "1.0.0"
phf = "0.7.21"
[dependencies.cairo-sys-rs]
version = "0.5.0"
#git = "https://github.com/gtk-rs/cairo.git"
#branch = "master"
#git = "https://github.com/federicomenaquintero/cairo.git"
#branch = "matrix-try-invert"
#git = "file:///home/federico/src/gtk-rs/cairo"
#features = ["png"]
[dependencies.cairo-rs]
version = "0.3.0"
#git = "https://github.com/gtk-rs/cairo.git"
#branch = "master"
#git = "file:///home/federico/src/gtk-rs/cairo"
#features = ["png"]
[dependencies.glib]
version = "0.4.0"
#git = "https://github.com/gtk-rs/glib.git"
#branch = "master"
[dependencies.glib-sys]
version = "0.5.0"
#git = "https://github.com/gtk-rs/sys"
#branch = "master"
[lib]
name = "rsvg_internals"
crate-type = ["staticlib"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment