-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/34/support wasm #35
base: master
Are you sure you want to change the base?
Conversation
Holy heck! That's amazing!! Thanks so much for these contributions - I'm somewhat time-constrained this week, but I'll try to get them merged this weekend! |
Sweet ✌️, both the PRs are merged, simply waiting on their release, so we can refer to the released versions in here 🚀 |
So, I love this! Two things that I'd like to see in this PR still:
|
Heya, quality checkboxes, my favourite ✌️. I'm halfway through writing CI tests, but it needs a change in |
ad66116
to
4cf4910
Compare
Heya, I got tests running through $ wasm-pack test --headless --firefox -- --no-default-features --features "std wasm-bindgen" Running target/wasm32-unknown-unknown/debug/deps/direct-8375365da32962c5.wasm
Set timeout to 20 seconds...
Running headless tests in Firefox on `http://127.0.0.1:39841/`
Try find `webdriver.json` for configure browser's capabilities:
Not found
running 7 tests
test direct::correct_wait_time ... ok
test direct::all_capacity_check_rejects_excess ... ok
test direct::rejects_too_many_all ... ok
test direct::never_allows_more_than_capacity_all ... ok
test direct::all_1_identical_to_1 ... ok
test direct::rejects_too_many ... ok
test direct::accepts_first_cell ... ok
test result: ok. 7 passed; 0 failed; 0 ignored
# .. more output Something that happens in the Also, the error message from the browser web driver only includes the panic message and no true line number, which is why I copied the assertion operation, so we get: error output:
- panicked at 'elapsed: 200ms', tests/sinks.rs:1:1
+ panicked at 'expected i.elapsed() > Duration::from_millis(200), elapsed: 200ms', tests/sinks.rs:1:1 I haven't updated |
4569104
to
39e586b
Compare
I've updated circleci config, though I wouldn't know if it works until it's run. Also, there is a way to run tests without |
39e586b
to
daf7308
Compare
116f9ad
to
fde2d76
Compare
Heya, long break, but the two dependencies above are published. I've taken them in and rebased over |
Oooh, that's super exciting - I'll check your changes out this weekend, hopefully we can get wasm support shipped soon! |
bors try |
tryBuild failed: |
It looks like the wasm tests you added are failing because it doesn't have jq available... this is weird. Since the circleci config is auto-generated by |
Gotcha, shall try that in the next two days ✌️ |
Heya, been spending time on getting |
6472e22
to
241e544
Compare
Codecov Report
@@ Coverage Diff @@
## master #35 +/- ##
==========================================
+ Coverage 99.35% 99.36% +0.01%
==========================================
Files 30 31 +1
Lines 2011 2043 +32
==========================================
+ Hits 1998 2030 +32
Misses 13 13
Continue to review full report at Codecov.
|
On WASM the elapsed time sometimes is still on the boundary value.
241e544
to
d4984e5
Compare
(this is based over #33)
Closes #34.
Attempt to support WASM. This builds and runs in a WASM application, but requires the following PRs:
checked_add
andchecked_sub
towasm::Instant
. sebcrozet/instant#17 -- provideInstant::checked_sub
. Needsinstant
release >0.1.3
(Release 0.1.4 sebcrozet/instant#18)instant::Instant
in place ofstd::time::Instant
. Amanieu/parking_lot#231 -- useinstant::Instant
. Needsparking_lot
release >0.10.2
.