dependabot[bot]
e6816855a3
Bump serde from 1.0.189 to 1.0.190 ( #3423 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.189 to 1.0.190.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.189...v1.0.190 )
---
updated-dependencies:
- dependency-name: serde
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]
84858e288e
Bump clap from 4.4.6 to 4.4.7 ( #3419 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.6 to 4.4.7.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.6...v4.4.7 )
---
updated-dependencies:
- dependency-name: clap
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]
cc4d72ddbf
Bump hashbrown from 0.14.1 to 0.14.2 ( #3403 )
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.14.1 to 0.14.2.
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.14.1...v0.14.2 )
---
updated-dependencies:
- dependency-name: hashbrown
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]
20aebdfaae
Bump icu_collator from 1.3.2 to 1.3.3 ( #3396 )
...
Bumps [icu_collator](https://github.com/unicode-org/icu4x ) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/icu@1.3.2...ind/icu_collator@1.3.3 )
---
updated-dependencies:
- dependency-name: icu_collator
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]
82bfb00877
Bump regex from 1.10.1 to 1.10.2 ( #3393 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.1 to 1.10.2.
- [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.10.1...1.10.2 )
---
updated-dependencies:
- dependency-name: regex
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]
a98e8f5d78
Bump regex from 1.10.0 to 1.10.1 ( #3390 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.0 to 1.10.1.
- [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.10.0...1.10.1 )
---
updated-dependencies:
- dependency-name: regex
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]
2c57955768
Bump bitflags from 2.4.0 to 2.4.1 ( #3391 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.4.0...2.4.1 )
---
updated-dependencies:
- dependency-name: bitflags
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]
f438ffa4bf
Bump serde from 1.0.188 to 1.0.189 ( #3382 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.188 to 1.0.189.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.188...v1.0.189 )
---
updated-dependencies:
- dependency-name: serde
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]
68b023ae74
Bump regex from 1.9.6 to 1.10.0 ( #3373 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.6 to 1.10.0.
- [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.9.6...1.10.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
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]
ca49188e7e
Bump num-traits from 0.2.16 to 0.2.17 ( #3368 )
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.16 to 0.2.17.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.16...num-traits-0.2.17 )
---
updated-dependencies:
- dependency-name: num-traits
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]
483fe02675
Bump icu_segmenter from 1.3.0 to 1.3.2 ( #3359 )
...
Bumps [icu_segmenter](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/icu@1.3.0...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_segmenter
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]
3ff5282c71
Bump icu_provider_blob from 1.3.0 to 1.3.2 ( #3358 )
...
Bumps [icu_provider_blob](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/icu@1.3.0...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_provider_blob
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]
f74688eb89
Bump icu_casemap from 1.3.1 to 1.3.2 ( #3356 )
...
Bumps [icu_casemap](https://github.com/unicode-org/icu4x ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/ind/icu_casemap@1.3.1...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_casemap
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]
b424567103
Bump icu_datetime from 1.3.1 to 1.3.2 ( #3360 )
...
Bumps [icu_datetime](https://github.com/unicode-org/icu4x ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/ind/icu_datetime@1.3.1...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_datetime
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]
1dcd0e69a1
Bump icu_collator from 1.3.0 to 1.3.2 ( #3353 )
...
Bumps [icu_collator](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/icu@1.3.0...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_collator
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]
7c85c87855
Bump icu_list from 1.3.0 to 1.3.2 ( #3352 )
...
Bumps [icu_list](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/icu@1.3.0...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_list
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]
f27b3a06c0
Bump icu_locid from 1.3.0 to 1.3.2 ( #3354 )
...
Bumps [icu_locid](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/icu@1.3.0...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_locid
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]
c9768908a6
Bump icu_calendar from 1.3.1 to 1.3.2 ( #3350 )
...
Bumps [icu_calendar](https://github.com/unicode-org/icu4x ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/compare/ind/icu_calendar@1.3.1...icu@1.3.2 )
---
updated-dependencies:
- dependency-name: icu_calendar
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]
4f36b8350e
Bump icu_datetime from 1.3.0 to 1.3.1 ( #3343 )
...
Bumps [icu_datetime](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits )
---
updated-dependencies:
- dependency-name: icu_datetime
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]
43a3b1a137
Bump icu_locid_transform from 1.3.0 to 1.3.1 ( #3345 )
...
Bumps [icu_locid_transform](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits )
---
updated-dependencies:
- dependency-name: icu_locid_transform
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]
78bc9ebfe5
Bump icu_casemap from 1.3.0 to 1.3.1 ( #3346 )
...
Bumps [icu_casemap](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits )
---
updated-dependencies:
- dependency-name: icu_casemap
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]
cd12d15cab
Bump icu_provider from 1.3.0 to 1.3.1 ( #3342 )
...
Bumps [icu_provider](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits )
---
updated-dependencies:
- dependency-name: icu_provider
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]
5770f988cf
Bump icu_calendar from 1.3.0 to 1.3.1 ( #3344 )
...
Bumps [icu_calendar](https://github.com/unicode-org/icu4x ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits )
---
updated-dependencies:
- dependency-name: icu_calendar
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]
705e0ce12c
Bump regex from 1.9.5 to 1.9.6 ( #3336 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.5 to 1.9.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.9.5...1.9.6 )
---
updated-dependencies:
- dependency-name: regex
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]
5f8912907c
Bump indexmap from 2.0.1 to 2.0.2 ( #3337 )
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 2.0.1 to 2.0.2.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/2.0.1...2.0.2 )
---
updated-dependencies:
- dependency-name: indexmap
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
José Julián Espina
d8f6834d5f
Improve CI testing ( #3333 )
...
* Improve CI testing
* Bail on error
* cargo fmt
* Invert names
* Split misc action
* Rename some actions
1 year ago
Kevin
7eadcbd08a
`icu_properties` default features to true ( #3326 )
...
* Default features to true
* Add member CI check
* Move CI additions to Build and Test
1 year ago
dependabot[bot]
70ee0507ff
Bump hashbrown from 0.14.0 to 0.14.1 ( #3324 )
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.14.0 to 0.14.1.
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.14.0...v0.14.1 )
---
updated-dependencies:
- dependency-name: hashbrown
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]
5939189675
Bump clap from 4.4.5 to 4.4.6 ( #3323 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.5 to 4.4.6.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.5...v4.4.6 )
---
updated-dependencies:
- dependency-name: clap
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
José Julián Espina
b80409d87d
Remove direct conversion from `&str` to `JsValue`/`PropertyKey`. ( #3319 )
...
* Remove direct conversion from `&str` to `JsValue`/`PropertyKey`.
* Allow unused static strings
* Introduce DHAT to benchmark data usage
* Create new release profile
* Fix docs
1 year ago
dependabot[bot]
008b0e5e44
Bump indexmap from 2.0.0 to 2.0.1 ( #3320 )
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 2.0.0 to 2.0.1.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/commits )
---
updated-dependencies:
- dependency-name: indexmap
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
José Julián Espina
940e603d3b
Migrate to workspace deps ( #3313 )
...
* Migrate to workspace deps
* cargo fmt
1 year ago
Iban Eguia Moraza
7e18da63fa
Added MSRV check ( #3291 )
...
* Added MSRV check
* Added Rust version check from Cargo.toml
* Update rust.yml
Co-authored-by: Kevin <46825870+nekevss@users.noreply.github.com>
---------
Co-authored-by: Kevin <46825870+nekevss@users.noreply.github.com>
1 year ago
José Julián Espina
986b048560
Bump `rust-version` to 1.71 ( #3290 )
...
* Bump `rust-version` to 1.71
* cargo clippy
1 year ago
Kevin
f92e7489d8
Clippy updates: add panics and etc. ( #3235 )
...
* Adding Panics doc to Profiler's drop method
* forgot to rustfmt
* Address clippy lints/temporarily allow some
* boa_ast -> rustfmt
* all features and all targets
* Trigger re-run
* Add workspace.resolver
* markdown lint
* Trigger actions pt. 2
---------
Co-authored-by: jedel1043 <jedel0124@gmail.com>
1 year ago
Andrea Frigido
023c18f704
chore: Update license field following SPDX 2.1 license expression standard ( #3209 )
1 year ago
José Julián Espina
9b1f2f4eb7
Bump version to 0.17 ( #3085 )
2 years ago
José Julián Espina
8629a748fd
Remove `boa_unicode` ( #3070 )
2 years ago
Iban Eguia Moraza
63d9d67ecb
Added a Boa runtime ( #2743 )
...
This Pull Request fixes/closes #718 .
It changes the following:
- Adds a new `boa_runtime` crate, that will only include `console` for now
- Changes the `boa_cli` crate to use the new `boa_runtime` crate for the console, instead of the `console` feature of `boa_engine`
- Removes the `console` feature in `boa_engine`
- Adds a new `boa_testing` helper crate with some useful functions for testing `boa`. This part duplicates the code from `boa_engine`, but I could not make `boa_engine` work with this crate as a dependency due to circular dependencies. Maybe doing it a bit generic could work, but didn't have enough time to check it.
To be checked: wether the WASM example works as expected with the console.
2 years 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
Haled Odat
c9ae4dc2e3
Update `README.md` cli options ( #2678 )
...
It changes the following:
- Remove Just-in-time compilation from description in `Cargo.toml`
- Change `FlowgraphFormat` to be terminal friendly
- Update `README.md` cli options section
2 years ago
José Julián Espina
3bf5de2929
Redesign Intl API and implement some services ( #2478 )
...
This Pull Request fixes/closes #1180 . (I'll open a tracking issue for the progress)
It changes the following:
- Redesigns the internal API of Intl to (hopefully!) make it easier to implement a service.
- Implements the `Intl.Locale` service.
- Implements the `Intl.Collator` service.
- Implements the `Intl.ListFormat` service.
On the subject of the failing tests. Some of them are caused by missing locale data in the `icu_testdata` crate; we would need to regenerate that with the missing locales, or vendor a custom default data.
On the other hand, there are some tests that are bugs from the ICU4X crate. The repo https://github.com/jedel1043/icu4x-test262 currently tracks the found bugs when running test262. I'll sync with the ICU4X team to try to fix those.
cc @sffc
2 years ago
raskad
e3d35e9b36
Fix rust 1.66.0 lints ( #2486 )
...
This Pull Request fixes the new lints introduced in clippy 1.66.0.
2 years ago
José Julián Espina
b88736a5c9
Extract the parser into a crate ( #2409 )
...
Depends on #2408 .
This finally separates parsing from execution, which should make compilations a bit faster.
2 years ago
José Julián Espina
91235c77fe
Rewrite some patterns with let-else and ok_or_else ( #2404 )
...
This Pull Request updates the codebase to the newest version of rustc (1.65.0).
It changes the following:
- Bumps `rust-version` to 1.65.0.
- Rewrites some snippets to use the new let else, ok_or_else and some other utils.
- Removes the `rustdoc::missing_doc_code_examples` allow lint from our codebase. (Context: https://github.com/rust-lang/rust/pull/101732 )
2 years ago
José Julián Espina
b4da172f91
Extract the ast to a crate ( #2402 )
...
This should hopefully improve our compilation times, both from a clean build and from an incremental compilation snapshot.
Next would be the parser, but it imports `Context`, so it'll require a bit more work.
The number of file changes is obviously big, but almost nothing was changed, I just moved everything to another crate and readjusted the imports of the `parser` module. (Though, I did have to change some details, because there were some functions on the ast that returned `ParseError`s, and the tests had to be moved to the parser)
2 years ago
João Borges
48e6513564
Cleanup and speed-up CI ( #2376 )
...
Currently we run 7 different jobs:
- tests linux
- tests macos
- tests windows
- rustfmt
- clippy
- examples
- documentation
With this change I reduced them to 4 and hopefully sped them up.
The total execution time is limited by the tests, especially linux that calculates coverage. Having separate jobs for clippy and rustfmt (which take a very small amount of time) is a waste of energy.
With this PR:
Introduced a new cargo profile, `ci`, that should create smaller sized binaries and reduce the our cache usage.
I changed the test runner for macos and windows to [nextest](https://nexte.st/ ), which should be faster and is specifically designed for CI.
I merged all smaller tasks in a single job, misc, the steps clearly identify what is being tested so it shouldn't affect clarity.
Switched to using the [rust-cache](https://github.com/Swatinem/rust-cache ) GH action, this simplifies our work by no longer having to worry about which directories to cache, rust-cache handles all that for us.
~~The bors task should also be modified, I'll get to it as soon as I have time. I believe it should be possible for us to have a single workflow described and have it both be the normal CI and the bors test.~~
2 years ago
José Julián Espina
df70302194
First prototype for new `JsString` using UTF-16 ( #1659 )
...
I think it's time to address the elephant in the room.
This Pull Request will (hopefully!) solve part of #736 .
This is a complete rewrite of `JsString`, but instead of storing `u8` bytes it stores `u16` words. The `encode!` macro (renamed to `utf16!` for simplicity) from the `const-utf16` crate allows us to create UTF-16 encoded arrays at compilation time. `JsString` implements `Deref<Target=[u16]>` to unlock the slice methods and possibly make some manipulations easier. However, we would need to create our own library of utilities for `JsString`.
2 years ago
José Julián Espina
e9e85f5a49
Switch to workspace inherited properties ( #2297 )
...
This Pull Request switches our codebase to the brand new [workspace inherited keys](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table ), which allows us to define common package options that are usable within each crate's Cargo.toml file.
It also allows to share dependency versions between crates, but I defined only shared versions for our workspace members. It would be a good follow-up to lift all the shared dependencies between crates into the global Cargo.toml.
2 years ago
Jason Williams
01bd50fa72
cargo workspaces fixes #2001 ( #2026 )
...
This adds cargo-workspaces to our repo for easier publishing.
(I think we may need to do a dry run of this first to test)
fixes https://github.com/boa-dev/boa/issues/2001
3 years ago