Skip to content

Commit

Permalink
gather crates into workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
euclio committed May 8, 2021
1 parent 9453af7 commit 15f712c
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 199 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,33 +47,20 @@ jobs:
Xvfb :99 &
sleep 3
openbox &
cargo test --manifest-path relm-examples/Cargo.toml -- --nocapture
cargo test -- --nocapture
- name: "relm-derive: tests"
run: |
cargo test --manifest-path relm-derive/Cargo.toml -- --nocapture
- name: "relm: test examples"
- name: "relm-examples: tests"
run: |
Xvfb :99 &
sleep 3
openbox &
cargo test --manifest-path relm-examples/Cargo.toml --examples
- name: "relm: test buttons-attribute example"
run: |
Xvfb :99 &
sleep 3
openbox &
cargo test --manifest-path relm-examples/examples/buttons-attribute/Cargo.toml
- name: "relm: build http example"
run: cargo build --manifest-path relm-examples/examples/http/Cargo.toml

- name: "relm: build async example"
run: cargo build --manifest-path relm-examples/examples/async/Cargo.toml

- name: "relm: build webkit-test example"
- name: "relm-examples: build webkit-test example"
run: cargo build --manifest-path relm-examples/examples/webkit-test/Cargo.toml

- uses: bcomnes/[email protected]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
target
/target
Cargo.lock
release.sh
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@ gtk = "^0.9.0"
libc = "^0.2.54"
log = "^0.4.6"

[dev-dependencies]
relm-derive = { path = "relm-derive" }

[features]
hidpi = ["cairo-rs/v1_14"]

[workspace]
members = ["relm-derive", "relm-examples", "relm-examples/examples/webkit-test", "relm-test"]
5 changes: 5 additions & 0 deletions relm-examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ edition = "2018"
[dev-dependencies]
chrono = "0.4"
gdk = "^0.13.0"
gdk-pixbuf = "^0.9.0"
glib = "^0.10.0"
gtk = "^0.9.0"
gtk-test = "^0.6"
json = "^0.11.5"
rand = "^0.5.1"
simplelog = "^0.5.3"
uhttp_uri = "^0.5.1"

[dev-dependencies.gio]
version = "^0.9.0"
features = ["v2_50"]

[dev-dependencies.relm]
path = ".."
Expand Down
File renamed without changes.
19 changes: 0 additions & 19 deletions relm-examples/examples/async/Cargo.toml

This file was deleted.

18 changes: 0 additions & 18 deletions relm-examples/examples/buttons-attribute/Cargo.toml

This file was deleted.

122 changes: 0 additions & 122 deletions relm-examples/examples/buttons-attribute/src/main.rs

This file was deleted.

File renamed without changes.
22 changes: 0 additions & 22 deletions relm-examples/examples/http/Cargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion relm-examples/tests/include.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Widget for Win {
}

// Specify a view written in another file.
view!("tests/buttons.relm");
view!("relm-examples/tests/buttons.relm");
}

fn main() {
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ type InitTestComponents<WIDGET> = (Component<WIDGET>, <WIDGET as WidgetTest>::St
/// # }
/// #
/// # impl WidgetTest for Win {
/// # type Streams = ();
/// #
/// # fn get_streams(&self) -> Self::Streams {}
/// #
/// # type Widgets = Win;
/// #
/// # fn get_widgets(&self) -> Self::Widgets {
Expand Down

0 comments on commit 15f712c

Please sign in to comment.