From 277eef4be6ccd179e4ef08b825681ee17ef68bc9 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 23 Sep 2020 12:24:25 +0800 Subject: [PATCH 1/3] Delete benchmark.yml --- .github/workflows/benchmark.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index df310705..00000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Benchmark -on: - push: - branches: - - master - -jobs: - benchmark: - name: Run Rust benchmark - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: rustup toolchain update nightly && rustup default nightly - - name: Run benchmark - run: cargo +nightly bench | tee output.txt - - name: Store benchmark result - uses: rhysd/github-action-benchmark@v1 - with: - name: Rust Benchmark - tool: 'cargo' - output-file-path: output.txt - # Use personal access token instead of GITHUB_TOKEN due to https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false - github-token: ${{ secrets.RHAI }} - auto-push: true - # Show alert with commit comment on detecting possible performance regression - alert-threshold: '200%' - comment-on-alert: true - fail-on-alert: true - alert-comment-cc-users: '@schungx' From a08544c01986dd81f593fb80958e9d4e26a912e2 Mon Sep 17 00:00:00 2001 From: KokaKiwi Date: Wed, 30 Dec 2020 14:58:34 +0100 Subject: [PATCH 2/3] engine(module_resolver): Fix build for no_std --- src/engine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine.rs b/src/engine.rs index bf36d028..972f135a 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -785,7 +785,7 @@ impl Engine { module_resolver: Box::new(crate::module::resolvers::FileModuleResolver::new()), #[cfg(not(feature = "no_module"))] #[cfg(any(feature = "no_std", target_arch = "wasm32",))] - module_resolver: None, + module_resolver: Box::new(crate::module::resolvers::DummyModuleResolver::new()), type_names: Default::default(), disabled_symbols: Default::default(), From a3376482173bbc7f6be7e8f52f27ea56ccded37a Mon Sep 17 00:00:00 2001 From: Victor Koenders Date: Thu, 7 Jan 2021 15:19:40 +0100 Subject: [PATCH 3/3] Fixed an issue when compiling no_std and no_optimize on a target with no alloc::sync --- src/stdlib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stdlib.rs b/src/stdlib.rs index 165b9068..8171750b 100644 --- a/src/stdlib.rs +++ b/src/stdlib.rs @@ -11,7 +11,9 @@ mod inner { #[cfg(not(target_arch = "wasm32"))] pub use core::{i128, u128}; - pub use alloc::{borrow, boxed, format, rc, string, sync, vec}; + #[cfg(feature = "sync")] + pub use alloc::sync; + pub use alloc::{borrow, boxed, format, rc, string, vec}; pub use core_error as error;