Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3fb8fd3

Browse files
authored
Bump crates' versions to 1.0.0 (#4513)
Since we already made a breaking change, this bumps all our crates'versions to 1.0.0. This is also a commitment to start working towardsreleasing a 1.0.0, which many people will be happy about :)- Fixes clippy lints.- Bumps our MSRV to 1.91 for future required changes.
1 parent868d13f commit3fb8fd3

File tree

9 files changed

+42
-53
lines changed

9 files changed

+42
-53
lines changed

‎Cargo.lock‎

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ exclude = [
2424

2525
[workspace.package]
2626
edition ="2024"
27-
version ="0.21.0"
28-
rust-version ="1.88.0"
27+
version ="1.0.0-dev"
28+
rust-version ="1.91.0"
2929
authors = ["boa-dev"]
3030
repository ="https://github.com/boa-dev/boa"
3131
license ="Unlicense OR MIT"
@@ -34,15 +34,15 @@ description = "Boa is a Javascript lexer, parser and compiler written in Rust. C
3434
[workspace.dependencies]
3535

3636
# Repo Crates
37-
boa_ast = {version ="~0.21.0",path ="core/ast" }
38-
boa_engine = {version ="~0.21.0",path ="core/engine" }
39-
boa_gc = {version ="~0.21.0",path ="core/gc" }
40-
boa_icu_provider = {version ="~0.21.0",path ="core/icu_provider" }
41-
boa_interner = {version ="~0.21.0",path ="core/interner" }
42-
boa_macros = {version ="~0.21.0",path ="core/macros" }
43-
boa_parser = {version ="~0.21.0",path ="core/parser" }
44-
boa_runtime = {version ="~0.21.0",path ="core/runtime" }
45-
boa_string = {version ="~0.21.0",path ="core/string" }
37+
boa_ast = {version ="~1.0.0-dev",path ="core/ast" }
38+
boa_engine = {version ="~1.0.0-dev",path ="core/engine" }
39+
boa_gc = {version ="~1.0.0-dev",path ="core/gc" }
40+
boa_icu_provider = {version ="~1.0.0-dev",path ="core/icu_provider" }
41+
boa_interner = {version ="~1.0.0-dev",path ="core/interner" }
42+
boa_macros = {version ="~1.0.0-dev",path ="core/macros" }
43+
boa_parser = {version ="~1.0.0-dev",path ="core/parser" }
44+
boa_runtime = {version ="~1.0.0-dev",path ="core/runtime" }
45+
boa_string = {version ="~1.0.0-dev",path ="core/string" }
4646

4747
# Utility Repo Crates
4848
tag_ptr = {version ="~0.1.0",path ="utils/tag_ptr" }

‎core/engine/src/builtins/array/from_async.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ enum AsyncIteratorStateMachine {
228228
},
229229
}
230230

231-
/// Part of [`Array.fromAsync ( asyncItems [ , mapfn [ , thisArg ] ] )`][<https://tc39.es/proposal-array-from-async/#sec-array.fromAsync>].
231+
/// Part of [`Array.fromAsync ( asyncItems [ , mapfn [ , thisArg ] ] )`](https://tc39.es/proposal-array-from-async/#sec-array.fromAsync).
232232
fnfrom_async_iterator(
233233
mutresult:JsResult<JsValue>,
234234
(global_state, state_machine):&(GlobalState,Cell<Option<AsyncIteratorStateMachine>>),
@@ -485,7 +485,7 @@ enum ArrayLikeStateMachine {
485485
},
486486
}
487487

488-
/// Part of [`Array.fromAsync ( asyncItems [ , mapfn [ , thisArg ] ] )`][<https://tc39.es/proposal-array-from-async/#sec-array.fromAsync>].
488+
/// Part of [`Array.fromAsync ( asyncItems [ , mapfn [ , thisArg ] ] )`](https://tc39.es/proposal-array-from-async/#sec-array.fromAsync).
489489
fnfrom_array_like(
490490
mutresult:JsResult<JsValue>,
491491
(global_state, state_machine):&(GlobalState,Cell<Option<ArrayLikeStateMachine>>),

‎core/engine/src/builtins/temporal/plain_date/mod.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,6 @@ impl PlainDate {
12581258
///
12591259
/// - [ECMAScript Temporal proposal][spec]
12601260
/// - [MDN reference][mdn]
1261-
/// - [`temporal_rs` documentation][temporal_rs-docs]
12621261
///
12631262
/// [spec]: https://tc39.es/proposal-temporal/#sec-temporal.plaindate.prototype.valueof
12641263
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/valueOf

‎core/engine/src/property/mod.rs‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub struct PropertyDescriptor {
5656
}
5757

5858
/// `DescriptorKind` represents the different kinds of property descriptors.
59-
#[derive(Debug,Clone,Trace,Finalize)]
59+
#[derive(Debug,Default,Clone,Trace,Finalize)]
6060
pubenumDescriptorKind{
6161
/// A data property descriptor.
6262
Data{
@@ -77,15 +77,10 @@ pub enum DescriptorKind {
7777
},
7878

7979
/// A generic property descriptor.
80+
#[default]
8081
Generic,
8182
}
8283

83-
implDefaultforDescriptorKind{
84-
fndefault() ->Self{
85-
Self::Generic
86-
}
87-
}
88-
8984
implPropertyDescriptor{
9085
/// An accessor property descriptor is one that includes any fields named either `[[Get]]` or `[[Set]]`.
9186
///

‎core/macros/src/class.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ pub(crate) fn class_impl(attr: TokenStream, input: TokenStream) -> TokenStream {
688688
.into();
689689
};
690690

691-
let class_impl = visitor.serialize_class_impl(&impl_.self_ty,&name.to_string());
691+
let class_impl = visitor.serialize_class_impl(&impl_.self_ty,&name);
692692

693693
let debug =take_path_attr(&mut impl_.attrs,"debug");
694694

‎core/parser/src/lexer/mod.rs‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -412,20 +412,15 @@ impl<'a> From<&'a [u8]> for Lexer<UTF8Input<&'a [u8]>> {
412412
/// ECMAScript goal symbols.
413413
///
414414
/// <https://tc39.es/ecma262/#sec-ecmascript-language-lexical-grammar>
415-
#[derive(Debug,Clone,Copy,PartialEq,Eq)]
415+
#[derive(Debug,Default,Clone,Copy,PartialEq,Eq)]
416416
pub(crate)enumInputElement{
417417
Div,
418+
#[default]
418419
RegExp,
419420
TemplateTail,
420421
HashbangOrRegExp,
421422
}
422423

423-
implDefaultforInputElement{
424-
fndefault() ->Self{
425-
Self::RegExp
426-
}
427-
}
428-
429424
/// Checks if a character is whitespace as per ECMAScript standards.
430425
///
431426
/// The Rust `char::is_whitespace` function and the ECMAScript standard use different sets of

‎core/runtime/src/message/mod.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
//! supporting functions).
33
//!
44
//! More information:
5-
//! - [MDN documentation][<https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage>]
5+
//! - [MDN documentation][mdn]
6+
//!
7+
//! [mdn]: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
68
79
usecrate::store::JsValueStore;
810
use boa_engine::realm::Realm;

‎tests/tester/src/main.rs‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -860,16 +860,14 @@ impl Test {
860860
}
861861

862862
/// An outcome for a test.
863-
#[derive(Debug,Clone)]
863+
#[derive(Debug,Default,Clone)]
864864
enumOutcome{
865+
#[default]
865866
Positive,
866-
Negative{phase:Phase,error_type:ErrorType},
867-
}
868-
869-
implDefaultforOutcome{
870-
fndefault() ->Self{
871-
Self::Positive
872-
}
867+
Negative{
868+
phase:Phase,
869+
error_type:ErrorType,
870+
},
873871
}
874872

875873
implFrom<Option<Negative>>forOutcome{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp