5414 Commits

Author SHA1 Message Date
Ivan Enderlin
aab82c122d feat(interface-types) Implement From<&Vec<InterfaceValue>> for RecordType. 2020-04-02 11:55:54 +02:00
Ivan Enderlin
3411ac7a1c feat(interface-types) Move serde::InterfaceTypeIterator into values::FlattenInterfaceValueIterator. 2020-04-02 11:55:20 +02:00
Ivan Enderlin
5ba6fda1c9 chore(interface-types) Improve code readibility of string instructions. 2020-04-02 11:51:34 +02:00
Mark McCaskey
976bf9b6a3 Move integration tests to tests dir in workspace root 2020-04-01 17:09:51 -07:00
bors[bot]
ecafa7564d
Merge #1313
1313: Add types and methods to provide updated API r=MarkMcCaskey a=MarkMcCaskey

Improving the API in a number of ways.

<details><summary>Current status </summary>

- [x] Get exports from Instance
  - [x] Func
     - [x] Documented
     - [x] Tested
  - [x] DynFunc
    - [x] Documented
    - [x] Tested
  - [x] Memory
    - [x] Documented
    - [x] Tested
  - [x] Table
    - [x] Documented
    - [ ] Tested ; fully testing this now will be difficult, blocked on Table API being completed
  - [x] Global
    - [x] Documented
    - [x] Tested
  - [x] Field syntax (fairly non-trivial)
- [x] Get imports from Module
  - [ ] Maybe update this to be an iterator instead of a Vec (side note, we may want to have a way to access specific types of imports too)
  - [x] Documented
  - [x] Tested
- [x] Get exports from Module
  - [x] Documented
  - [x] Tested
- [x] Get custom section from Module
  - [x] Figure out correct solution
  - [x] Ship separate PR that updates custom section code
  - [x] Documented
  - [x] Tested
- [ ] Updated Memory API
  - [x] Added conversion methods to bytes/pages with From
  - [ ] Documented
  - [ ] Tested
- [ ] Table APIs ; blocked on `wrap` being not linear time update (this update should also make it possible to retrieve a `Func` from `vm::Anyfunc`)
  - [ ] Table set (implemented needs to be checked)
    - [ ] Documented with examples
    - [x] Implemented
  - [ ] Table grow (implemented needs to be checked)
    - [ ] Documented with examples
    - [x] Implemented
  - [ ] Table get
    - [x] Structure implemented
    - [ ] Documented
    - [ ] Tested
- [ ] Module APIs (probably separate)
- [x] Update import object macro to handle a lack of trailing commas as well
  - [x] Add line in changelog about it
  - [x] Tested

</details>

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-03-31 23:25:28 +00:00
Mark McCaskey
0527b50af3 Improve consistency of names, reuse more code, and reorganize a bit 2020-03-31 16:00:52 -07:00
Mark McCaskey
bde319d9fb Fix bug and un-deprecate Instance::call 2020-03-31 14:06:30 -07:00
Mark McCaskey
836711f7cd Implement Instance::call in terms of the exports API 2020-03-31 12:40:55 -07:00
Mark McCaskey
50fcd57e45 Improve consistency and add misc clean ups 2020-03-31 12:37:50 -07:00
Ivan Enderlin
1a17cbb17e test(interface-types) Deserialize WIT record to Rust struct. 2020-03-31 14:44:04 +02:00
Ivan Enderlin
02b7e21345 feat(interface-types) Implement the record.lift instruction. 2020-03-31 12:34:32 +02:00
Ivan Enderlin
0af1076eee feat(interface-types) Encodes/decodes the record.lift instruction. 2020-03-31 08:17:52 +02:00
Ivan Enderlin
3655ef8bb7 chore(interface-types) Reorganize the serde module. 2020-03-31 08:02:46 +02:00
Ivan Enderlin
ee57b47770 feat(interface-types) Improve the Deserializer API. 2020-03-31 07:47:54 +02:00
Ivan Enderlin
c87c2ef33b feat(interface-values) Improve the TypeMismatch error. 2020-03-31 07:47:15 +02:00
Syrus Akbary
3639ef6d24
Enable sccache in ARM 2020-03-30 20:41:12 -07:00
Syrus Akbary
0623fa0549
Merge pull request #1325 from wasmerio/dependabot/cargo/structopt-0.3.12
Bump structopt from 0.3.11 to 0.3.12
2020-03-30 17:58:03 -07:00
Syrus Akbary
5e05ea26c6
Merge pull request #1326 from wasmerio/dependabot/cargo/serde-1.0.105
Bump serde from 1.0.104 to 1.0.105
2020-03-30 17:57:49 -07:00
Syrus Akbary
7dc26cf867
Merge pull request #1336 from wasmerio/dependabot/cargo/regex-1.3.6
Bump regex from 1.3.4 to 1.3.6
2020-03-30 17:57:39 -07:00
Syrus Akbary
ad4cfd1583
Merge pull request #1341 from wasmerio/dependabot/cargo/errno-0.2.5
Bump errno from 0.2.4 to 0.2.5
2020-03-30 17:57:29 -07:00
Mark McCaskey
403d4b4c8b
Merge branch 'master' into feature/update-api 2020-03-30 17:40:18 -07:00
Mark McCaskey
7ca721bd83 Update from feedback
Deprecate more methods on `Instance`, add `into_iter` method on
`Exports`, add FuncSig to ImportType and other updates.
2020-03-30 17:38:51 -07:00
dependabot-preview[bot]
778b686e82
Bump structopt from 0.3.11 to 0.3.12
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/TeXitoi/structopt/releases)
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TeXitoi/structopt/compare/v0.3.11...v0.3.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-31 00:16:44 +00:00
dependabot-preview[bot]
959a1937a0
Bump errno from 0.2.4 to 0.2.5
Bumps [errno](https://github.com/lambda-fairy/rust-errno) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/lambda-fairy/rust-errno/releases)
- [Commits](https://github.com/lambda-fairy/rust-errno/compare/v0.2.4...v0.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-31 00:16:43 +00:00
dependabot-preview[bot]
b5b5232a2b
Bump serde from 1.0.104 to 1.0.105
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-31 00:16:42 +00:00
dependabot-preview[bot]
5d87810892
Bump regex from 1.3.4 to 1.3.6
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.4 to 1.3.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.4...1.3.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-31 00:16:41 +00:00
bors[bot]
4903064372
Merge #1339
1339: Create a valid target triple in the LLVM Module. r=MarkMcCaskey a=nlewycky



Co-authored-by: Nick Lewycky <nick@wasmer.io>
Co-authored-by: nlewycky <nick@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-03-30 23:46:04 +00:00
Mark McCaskey
06fe2ac70d
Merge branch 'master' into feature/llvm-target-triple 2020-03-30 16:08:50 -07:00
bors[bot]
af03dc11b9
Merge #1345
1345: Adding Azure pipelines to handle ARM r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

Adding Azure pipelines to handle ARM
<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus <me@syrusakbary.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-03-30 22:38:26 +00:00
Syrus
800d428e8c Added the architecture into the artifacts 2020-03-30 15:36:42 -07:00
Syrus
d26ddd1023 Merge branch 'master' into feature/arm-tests 2020-03-30 15:29:52 -07:00
Syrus
eb4dc71208 Added changes in changelog 2020-03-30 15:28:47 -07:00
Syrus Akbary
d2e1098316
Merge pull request #1346 from wasmerio/revert-1343-blake3_update
Revert "update blake3 to version 0.3.0"
2020-03-30 15:23:15 -07:00
Syrus Akbary
34638417a9
Revert "update blake3 to version 0.3.0" 2020-03-30 15:22:46 -07:00
Syrus
18c0896423 Trying to ffix pipelines 2020-03-30 15:10:31 -07:00
Syrus
d5cdd497fa Fixed missing poolName 2020-03-30 15:03:50 -07:00
Syrus Akbary
b3c9abcd59
Merge pull request #1343 from oconnor663/blake3_update
update blake3 to version 0.3.0
2020-03-30 14:53:05 -07:00
Syrus
eec7844bae Added ARM integration 2020-03-30 14:45:26 -07:00
Syrus Akbary
c9113ea6ba
Merge branch 'master' into feature/arm-tests 2020-03-30 14:20:46 -07:00
Syrus
8e144a457b Adding Azure pipelines to handle ARM 2020-03-30 14:18:51 -07:00
Jack O'Connor
566d2f7467 update blake3 to version 0.3.0
Version 0.3 switched to using assembly implementations by default, which
both perform better and build more quickly. This invokes the C compiler
from build.rs. If Wasmer would prefer to avoid that build dependency, we
could enable the new `pure` feature.
2020-03-30 11:19:39 -04:00
Ivan Enderlin
154dcba42c feat(interface-types) Implement Serde deserializing for WIT records to Rust values.
WIT values are native Rust values. But records are represented as a
vector of WIT values. In order to provide a super neat API to the
user, Serde is used to deserialize this vector of WIT values to a
large variety of Rust values.
2020-03-30 15:42:35 +02:00
Ivan Enderlin
a99ae6bdb2 feat(interface-types) Add the Record WIT value. 2020-03-30 08:32:31 +02:00
nlewycky
c4c4adb7bf
Merge branch 'master' into feature/llvm-target-triple 2020-03-28 11:55:37 -07:00
Syrus Akbary
baa74d7385
Merge pull request #1335 from Hywan/fix-runtime-c-api-1314
fix(runtime-c-api) Change mutability of `memory` to`const` in `wasmer_memory_data_length`
2020-03-28 10:41:33 -07:00
Syrus Akbary
b7ad8b2c7a
Merge pull request #1337 from Hywan/fix-interface-types-remove-as
feat(interface-types) Better handling of i32 to usize casts
2020-03-28 10:41:06 -07:00
Nick Lewycky
5b7a06c07b Use the inkwell package on crates.io!! 2020-03-27 15:47:50 -07:00
Mark McCaskey
7cd9e82015 Simplify ImportType 2020-03-27 14:00:02 -07:00
Nick Lewycky
5bd6b161d5 Create a valid target triple in the LLVM Module. 2020-03-27 13:54:18 -07:00
Mark McCaskey
a0dca15fbc Add misc. fixes and updates from feedback 2020-03-27 13:25:51 -07:00