-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from dtolnay/demo
Combine demo into one root directory
- Loading branch information
Showing
14 changed files
with
84 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{matrix.rust}} | ||
- run: cargo run --manifest-path demo-rs/Cargo.toml | ||
- run: cargo run --manifest-path demo/Cargo.toml | ||
- run: cargo test --workspace --exclude cxx-test-suite | ||
|
||
msrv: | ||
|
@@ -43,7 +43,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dtolnay/[email protected] | ||
- run: cargo run --manifest-path demo-rs/Cargo.toml | ||
- run: cargo run --manifest-path demo/Cargo.toml | ||
|
||
buck: | ||
name: Buck | ||
|
@@ -66,7 +66,7 @@ jobs: | |
cp third-party/Cargo.lock . | ||
cargo vendor --versioned-dirs --locked third-party/vendor | ||
- run: buck build :cxx#check --verbose=0 | ||
- run: buck run demo-rs --verbose=0 | ||
- run: buck run demo --verbose=0 | ||
- run: buck test ... --verbose=0 | ||
|
||
bazel: | ||
|
@@ -84,5 +84,5 @@ jobs: | |
run: | | ||
cp third-party/Cargo.lock . | ||
cargo vendor --versioned-dirs --locked third-party/vendor | ||
- run: bazel run demo-rs --verbose_failures --noshow_progress | ||
- run: bazel run demo --verbose_failures --noshow_progress | ||
- run: bazel test ... --verbose_failures --noshow_progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
fn main() { | ||
cxx_build::bridge("src/main.rs") | ||
.file("../demo-cxx/demo.cc") | ||
.file("src/demo.cc") | ||
.flag_if_supported("-std=c++14") | ||
.compile("cxxbridge-demo"); | ||
|
||
println!("cargo:rerun-if-changed=src/main.rs"); | ||
println!("cargo:rerun-if-changed=../demo-cxx/demo.h"); | ||
println!("cargo:rerun-if-changed=../demo-cxx/demo.cc"); | ||
println!("cargo:rerun-if-changed=src/demo.cc"); | ||
println!("cargo:rerun-if-changed=include/demo.h"); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters