José Julián Espina
6130adf6d9
Group dependabot updates ( #3863 )
...
* Group dependabot updates
* Add missing winapi feature
6 months ago
dependabot[bot]
2fc85d0f22
Bump trybuild from 1.0.91 to 1.0.95 ( #3847 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.91 to 1.0.95.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.91...1.0.95 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7 months ago
José Julián Espina
f2b9c83ceb
Build docs.rs docs with all features enabled ( #3794 )
8 months ago
dependabot[bot]
3059408a62
Bump trybuild from 1.0.90 to 1.0.91 ( #3778 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.90...1.0.91 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
Hans Larsen
08b0debbfb
Allow deserialization of missing objects properties into Option<> ( #3767 )
...
* Allow deserialization of missing objects properties into Option<>
Currently the TryFromJs derive macro requires that all properties
be defined in the object, whether they are declared as Option<> or
not. This commit makes it so if the field is not found in the
JsObject, we try to deserialize undefined.
This is more in line with JavaScript behaviour.
* Fix cargo fmt
* Fix clippies
* Empty commit to trigger rerun of workflow
* Remove circular dependency between boa_engine and boa_macros
* Missing "::" in macro
---------
Co-authored-by: jedel1043 <jedel0124@gmail.com>
8 months ago
dependabot[bot]
902adc1738
Bump trybuild from 1.0.89 to 1.0.90 ( #3749 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.89 to 1.0.90.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.89...1.0.90 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
3b51a84350
Bump trybuild from 1.0.88 to 1.0.89 ( #3585 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.88 to 1.0.89.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.88...1.0.89 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
dependabot[bot]
e13dcecee2
Bump trybuild from 1.0.87 to 1.0.88 ( #3570 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.87 to 1.0.88.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.87...1.0.88 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
11 months ago
dependabot[bot]
cbbcdabc96
Bump trybuild from 1.0.86 to 1.0.87 ( #3563 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.86...1.0.87 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
11 months ago
dependabot[bot]
03adaed9b0
Bump trybuild from 1.0.85 to 1.0.86 ( #3525 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.85 to 1.0.86.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.85...1.0.86 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
11 months ago
José Julián Espina
47351efa53
Reestructure repo and CI improvements ( #3505 )
...
* Reestructure repo
* cargo update & fmt
* Fix CI
* Add newline
* Fix playground CI
* Fix CI
* Fix CI (for real this time)
* Fix CI (fr fr)
12 months ago
José Julián Espina
421ff7065f
Migrate to workspace lints ( #3334 )
...
* Migrate to workspace lints
* Fix last warnings
1 year ago
dependabot[bot]
89ba1f8c65
Bump trybuild from 1.0.84 to 1.0.85 ( #3284 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.84 to 1.0.85.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.84...1.0.85 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
ad898ae948
Bump trybuild from 1.0.83 to 1.0.84 ( #3269 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.83 to 1.0.84.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.83...1.0.84 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
4325b8d695
Bump trybuild from 1.0.82 to 1.0.83 ( #3219 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.82...1.0.83 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
3cedb6dc00
Bump trybuild from 1.0.81 to 1.0.82 ( #3161 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.81...1.0.82 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Jason Williams
5eb8541e4a
Changelog17 ( #3101 )
...
* v0.17.0 changelog
* Added latest changes, updated dependencies
---------
Co-authored-by: Iban Eguia Moraza <razican@protonmail.ch>
1 year ago
Iban Eguia Moraza
540aa2be4f
Initial version of a JS -> Rust conversion trait. ( #2276 )
...
This Pull Request closes #1975 . It's still a work in progress, but tries to go in that direction.
It changes the following:
- Adds a new `TryFromJs` trait, that can be derived using a new `boa_derive` crate.
- Adds a new `try_js_into()` function that, similarly to the standard library `TryInto` trait
Things to think about:
- Should the `boa_derive` crate be re-exported in `boa_engine` using a `derive` feature, similar to how it's done in `serde`?
- The current implementation only converts perfectly valid values. So, if we try to convert a big integer into an `i8`, or any floating point number to an `f32`. So, you cannot derive `TryFromJs` for structures that contain an `f32` for example (you can still manually implement the trait, though, and decide in favour of a loss of precision). Should we also provide some traits for transparent loss of precision?
- Currently, you cannot convert between types, so if the JS struct has an integer, you cannot cast it to a boolean, for example. Should we provide a `TryConvertJs` trait, for example to force conversions?
- Currently we only have basic types and object conversions. Should add `Array` to `Vec` conversion, for example, right? Should we also add `TypedArray` conversions? What about `Map` and `Set`? Does this step over the fine grained APIs that we were creating?
Note that this still requires a bunch of documentation, tests, and validation from the dev team and from the users that requested this feature. I'm particularly interested in @lastmjs's thoughts on this API.
I already added an usage example in `boa_examples/src/bin/derive.rs`.
Co-authored-by: jedel1043 <jedel0124@gmail.com>
2 years ago