commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
b9eb110549397ab2feec6c7d52580d90de8c4093 | ๊ฐ๋์ค | 2019-01-15T02:53:43 | Cache compiled helpers | diff --git a/ecmascript/transforms/Cargo.toml b/ecmascript/transforms/Cargo.toml
index e76607aec3..fec9029f24 100644
--- a/ecmascript/transforms/Cargo.toml
+++ b/ecmascript/transforms/Cargo.toml
@@ -15,8 +15,9 @@ swc_ecma_ast = { path ="../ast" }
swc_ecma_parser = { path ="../parser" }
either = "1.5"
fnv = "1"
-serd... | 3 | 37 | 28 |
e85bcce9cfe898b8cad58495986326e1d02a4a34 | ๊ฐ๋์ค | 2019-01-15T02:15:18 | implement Clone for passes | diff --git a/ecmascript/transforms/src/compat/es2018/mod.rs b/ecmascript/transforms/src/compat/es2018/mod.rs
index 933c87f3b2..8f1b7010fa 100644
--- a/ecmascript/transforms/src/compat/es2018/mod.rs
+++ b/ecmascript/transforms/src/compat/es2018/mod.rs
@@ -1,12 +1,10 @@
pub use self::object_rest_spread::object_rest_spre... | 13 | 37 | 24 |
66eab1bc85d3d511c2c37c922b2d019713c834db | ๊ฐ๋์ค | 2019-01-15T01:59:40 | `enable` flag for the simplifier pass | diff --git a/common/src/lib.rs b/common/src/lib.rs
index 8829b0ceac..1059296025 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -6,8 +6,8 @@
#![feature(specialization)]
extern crate ast_node;
extern crate either;
-extern crate rustc_errors;
extern crate rustc_data_structures;
+extern crate rustc_errors;
... | 2 | 11 | 6 |
c361ef560d8cb55d41fbcb3c95239678e3ffe0cd | ๊ฐ๋์ค | 2019-01-14T13:02:11 | Re-depend on rustc-ap-rustc_data_structures | diff --git a/common/Cargo.toml b/common/Cargo.toml
index 320563ac4b..ff5b260ac2 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -13,4 +13,5 @@ string_cache = "0.7"
either = "1.5"
rustc-ap-rustc_errors = "313"
rustc-ap-syntax = "313"
+rustc-ap-rustc_data_structures = "313"
rustc-ap-syntax_pos = "313"
\ No ... | 2 | 3 | 5 |
1710bb6e8ac40d36b38ee25ce1139d4b15ba3ff7 | ๊ฐ๋์ค | 2019-01-14T08:54:42 | Allow using `Pass` as a trait object | diff --git a/ecmascript/transforms/Cargo.toml b/ecmascript/transforms/Cargo.toml
index 702eeddc19..e76607aec3 100644
--- a/ecmascript/transforms/Cargo.toml
+++ b/ecmascript/transforms/Cargo.toml
@@ -16,6 +16,7 @@ swc_ecma_parser = { path ="../parser" }
either = "1.5"
fnv = "1"
serde = { version = "1", features = ["d... | 19 | 23 | 23 |
2a49e1e8961df56b3e69c4080f4e3c5f96759d14 | ๊ฐ๋์ค | 2019-01-14T08:36:15 | implement clone for transform passes | diff --git a/ecmascript/parser/src/lexer/input.rs b/ecmascript/parser/src/lexer/input.rs
index fe57b05f2e..a5f0508eb2 100644
--- a/ecmascript/parser/src/lexer/input.rs
+++ b/ecmascript/parser/src/lexer/input.rs
@@ -1,7 +1,7 @@
use std::str;
use swc_common::{BytePos, SourceFile};
-#[derive( Clone)]
+#[derive(Clone)]... | 32 | 184 | 156 |
fefc4c88c7f74c4f47dbd0b82b707bd52c1bff04 | ๊ฐ๋์ค | 2019-01-14T04:45:19 | camelCase for react options | diff --git a/ecmascript/transforms/src/react/jsx/mod.rs b/ecmascript/transforms/src/react/jsx/mod.rs
index 79856feee0..3341fa3b6a 100644
--- a/ecmascript/transforms/src/react/jsx/mod.rs
+++ b/ecmascript/transforms/src/react/jsx/mod.rs
@@ -17,6 +17,7 @@ use swc_ecma_parser::{Parser, Session, SourceFileInput, Syntax};
m... | 1 | 1 | 0 |
1fabc3fa3e8d400c64634692d545ae91a0b85064 | ๊ฐ๋์ค | 2019-01-10T09:54:40 | debug_assert! instead of assert!
This reduces binary size | diff --git a/ecmascript/parser/src/lexer/input.rs b/ecmascript/parser/src/lexer/input.rs
index 4e144cf42d..fe57b05f2e 100644
--- a/ecmascript/parser/src/lexer/input.rs
+++ b/ecmascript/parser/src/lexer/input.rs
@@ -61,7 +61,7 @@ impl<'a> Input for SourceFileInput<'a> {
}
fn slice(&mut self, start: BytePos, ... | 9 | 16 | 16 |
7aee29d91d905af3da5c5ce23d61ede416fdfa94 | ๊ฐ๋์ค | 2019-01-10T09:33:32 | Fix tests | diff --git a/ecmascript/transforms/src/compat/es2015/classes/mod.rs b/ecmascript/transforms/src/compat/es2015/classes/mod.rs
index 9809357d84..0bc0dfe342 100644
--- a/ecmascript/transforms/src/compat/es2015/classes/mod.rs
+++ b/ecmascript/transforms/src/compat/es2015/classes/mod.rs
@@ -40,6 +40,7 @@ mod tests;
/// r... | 3 | 44 | 35 |
d4fefa86155a35aa43eae33dd9b9759c529aea84 | ๊ฐ๋์ค | 2019-01-10T09:23:25 | Reduce binary size (#116)
- remove unused debug impls | diff --git a/atoms/Cargo.toml b/atoms/Cargo.toml
index aa3fb5a032..25849ea8c0 100644
--- a/atoms/Cargo.toml
+++ b/atoms/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "swc_atoms"
build = "build.rs"
-version = "0.1.0"
+version = "0.1.1"
authors = ["๊ฐ๋์ค <kdy1@outlook.kr>"]
license = "Apache-2.0/MIT"
repository = "http... | 36 | 109 | 50 |
9361e96d5be0c57cb86729e790a49c512df78cb7 | ๊ฐ๋์ค | 2019-01-09T09:40:14 | Move config from libswc to node-swc | diff --git a/Cargo.toml b/Cargo.toml
index c69d83f33f..26d665e5ad 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,14 +13,10 @@ description = "Speedy web compiler"
name = "swc"
[dependencies]
-rayon = "1.0.3"
-swc_atoms = { version = "0.1", path ="./atoms" }
-swc_common = { version = "0.1", path ="./common" }
-swc_e... | 3 | 3 | 281 |
0f0dc1451a85e5141fca52212a4e3f1ddb3835ab | ๊ฐ๋์ค | 2019-01-09T00:46:38 | Make procmacro2_semver_exempt optional | diff --git a/ecmascript/parser/macros/src/expand.rs b/ecmascript/parser/macros/src/expand.rs
index 9ff7eb86ce..5cb73d44c6 100644
--- a/ecmascript/parser/macros/src/expand.rs
+++ b/ecmascript/parser/macros/src/expand.rs
@@ -14,6 +14,7 @@ struct InjectSelf {
parser: Option<Ident>,
}
+#[cfg(procmacro2_semver_exemp... | 1 | 18 | 0 |
eb22cfb1bdb1096fc7a798b971cea5e380ecace7 | ๊ฐ๋์ค | 2019-01-08T09:27:38 | default for syntax configs | diff --git a/ecmascript/parser/src/lib.rs b/ecmascript/parser/src/lib.rs
index ea118c245c..9f4688d17a 100644
--- a/ecmascript/parser/src/lib.rs
+++ b/ecmascript/parser/src/lib.rs
@@ -220,38 +220,48 @@ impl Syntax {
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct TsConf... | 1 | 10 | 0 |
5dbf5ebf023e9bda77834871313d9acbc0df296a | ๊ฐ๋์ค | 2019-01-08T08:59:50 | #[serde(default)] for all config structs | diff --git a/src/config.rs b/src/config.rs
index c6cd4fa28d..c3d0f1c056 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -13,13 +13,15 @@ use std::{collections::HashMap, env};
/// `.swcrc` file
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
pub struct Config {
+ #[serde(default)]
pub jsc: JscConfi... | 1 | 6 | 1 |
2e22397f42139247b2c5a6e298482efda4e92176 | ๊ฐ๋์ค | 2018-12-31T14:10:50 | Fix hygiene bug (#109) | diff --git a/ecmascript/transforms/src/compat/es2015/block_scoping.rs b/ecmascript/transforms/src/compat/es2015/block_scoping.rs
index ee27bfb3bd..c6e1aa346d 100644
--- a/ecmascript/transforms/src/compat/es2015/block_scoping.rs
+++ b/ecmascript/transforms/src/compat/es2015/block_scoping.rs
@@ -21,7 +21,7 @@ impl<'a> Bl... | 3 | 196 | 28 |
ba750725095d8a41a4fb2a5023a7258e801866fb | Leviathan Jeanis | 2018-12-30T16:04:13 | Replace hard split on \n with ::lines() + ::trim() to fix \r\n | diff --git a/atoms/build.rs b/atoms/build.rs
index 8985cb7dfd..5251f74103 100644
--- a/atoms/build.rs
+++ b/atoms/build.rs
@@ -3,7 +3,7 @@ extern crate string_cache_codegen;
use std::{env, path::Path};
fn main() {
- let strs = include_str!("words.txt").split("\n").collect::<Vec<_>>();
+ let strs = include_str... | 1 | 1 | 1 |
75e83860bee7a388a82239a195990185566f2697 | Leviathan Jeanis | 2018-12-30T15:48:56 | Update proc_macro2 to fix missing join() | diff --git a/ecmascript/parser/macros/Cargo.toml b/ecmascript/parser/macros/Cargo.toml
index 6377ffb85f..0b38daf6e5 100644
--- a/ecmascript/parser/macros/Cargo.toml
+++ b/ecmascript/parser/macros/Cargo.toml
@@ -12,7 +12,7 @@ proc-macro = true
[dependencies]
swc_macros_common = { version = "0.1", path ="../../../mac... | 1 | 1 | 1 |
f89a227d5edc346c6386e4814940b5783459f840 | ๊ฐ๋์ค | 2018-12-30T04:06:13 | implement more traits for Syntax | diff --git a/ecmascript/parser/Cargo.toml b/ecmascript/parser/Cargo.toml
index 764b4dffaa..6775fec8b7 100644
--- a/ecmascript/parser/Cargo.toml
+++ b/ecmascript/parser/Cargo.toml
@@ -16,6 +16,7 @@ enum_kind = { version = "0.1", path ="../../macros/enum_kind" }
unicode-xid = "0.1"
log = { version = "0.4", features = [... | 2 | 11 | 1 |
72c9ac0b5a1621f0fcea8b3e41029945b478d027 | ๊ฐ๋์ค | 2018-12-30T03:14:51 | remove unused fields | diff --git a/ecmascript/transforms/src/react/jsx/mod.rs b/ecmascript/transforms/src/react/jsx/mod.rs
index fd08b15a63..3d327ce371 100644
--- a/ecmascript/transforms/src/react/jsx/mod.rs
+++ b/ecmascript/transforms/src/react/jsx/mod.rs
@@ -81,8 +81,6 @@ pub fn jsx(cm: Lrc<SourceMap>, options: Options, helpers: Arc<Helpe... | 1 | 0 | 4 |
b6a0d2303b8150a4b8f7c3249165d9e45fce1035 | ๊ฐ๋์ค | 2018-12-27T10:20:30 | Comment out printlns | diff --git a/ecmascript/transforms/src/compat/es2018/object_rest_spread/mod.rs b/ecmascript/transforms/src/compat/es2018/object_rest_spread/mod.rs
index ad291abcc0..f8bd4edf1b 100644
--- a/ecmascript/transforms/src/compat/es2018/object_rest_spread/mod.rs
+++ b/ecmascript/transforms/src/compat/es2018/object_rest_spread/... | 1 | 9 | 9 |
fbf70a3803725654aa8fb7851a7a0d221d26fe07 | ๊ฐ๋์ค | 2018-12-24T03:49:00 | improve performance | diff --git a/ecmascript/transforms/benches/bench.rs b/ecmascript/transforms/benches/bench.rs
index 89c2b6aa45..7e368d86ab 100644
--- a/ecmascript/transforms/benches/bench.rs
+++ b/ecmascript/transforms/benches/bench.rs
@@ -4,7 +4,7 @@ use std::alloc::System;
#[global_allocator]
static GLOBAL: System = System;
-
+#[... | 5 | 158 | 82 |
ea910a4dfb5b3965746648eaa8195d11df7d9173 | ๊ฐ๋์ค | 2018-11-28T09:14:44 | add #[inline] to folder / visitors (#81) | diff --git a/common/src/fold.rs b/common/src/fold.rs
index a7939c14aa..519e712551 100644
--- a/common/src/fold.rs
+++ b/common/src/fold.rs
@@ -10,6 +10,7 @@ pub trait Fold<T> {
fn fold(&mut self, node: T) -> T;
/// Creates a folder which applies `folder` after `self`.
+ #[inline(always)]
fn then<F>(... | 1 | 28 | 0 |
dc8e178088ae0d0dfacbc35419b7a61c4d0c1d5e | ๊ฐ๋์ค | 2018-11-19T10:58:35 | fix parser tests | diff --git a/ecmascript/parser/benches/bench.rs b/ecmascript/parser/benches/bench.rs
index 41cc7add57..ddfe0a0363 100644
--- a/ecmascript/parser/benches/bench.rs
+++ b/ecmascript/parser/benches/bench.rs
@@ -96,15 +96,7 @@ fn bench_parse_module(b: &mut Bencher) {
SourceFileInput::from(&*fm),
);
-... | 2 | 9 | 17 |
c816d699ca57fc50ff272dde8e441e15ecc093ac | ๊ฐ๋์ค | 2018-11-19T06:52:06 | Improve ast (#70)
* Update ast (bool -> Option<Span>)
* fixup! Update ast (bool -> Option<Span>) | diff --git a/ecmascript/Cargo.toml b/ecmascript/Cargo.toml
index 61630c47ad..ffa351c62d 100644
--- a/ecmascript/Cargo.toml
+++ b/ecmascript/Cargo.toml
@@ -6,11 +6,12 @@ license = "Apache-2.0/MIT"
repository = "https://github.com/swc-project/swc.git"
documentation = "https://swc-project.github.io/rustdoc/swc_ecmascrip... | 13 | 59 | 57 |
84675d32dfd14cd57230fe0771b52cd7ae18b232 | ๊ฐ๋์ค | 2018-11-19T04:02:55 | Visitor (#69)
* Add Visit<T> and VisitWith<F>
* implement derive(VisitWith<T>)
* Bump versions | diff --git a/common/Cargo.toml b/common/Cargo.toml
index f4cc33ab72..7dfab61583 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "swc_common"
-version = "0.1.1"
+version = "0.1.2"
authors = ["๊ฐ๋์ค <kdy1@outlook.kr>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/... | 13 | 393 | 25 |
3786c5f7881f2b8b4ff594256927ea0b79e41855 | ๊ฐ๋์ค | 2018-11-18T12:18:11 | Make procmacro2_semver_exempt optional for FromVariant (#68)
- use call_site if cfg(procmacro2_semver_exempt) is false
- Make `FromVariant` not to emit extern crate swc_common | diff --git a/macros/ast_node/Cargo.toml b/macros/ast_node/Cargo.toml
index db320b7211..1013a37291 100644
--- a/macros/ast_node/Cargo.toml
+++ b/macros/ast_node/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ast_node"
-version = "0.1.1"
+version = "0.1.2"
authors = ["๊ฐ๋์ค <kdy1@outlook.kr>"]
license = "Apache-2.0/MIT"
... | 4 | 11 | 8 |
fb08c18f7e184c5581252f068f55fc3b6e5fd09d | ๊ฐ๋์ค | 2018-11-17T03:30:49 | Support es2019 (#63)
ast:
- Update ast to match es2019 spec
parser:
- implement es2019 parser
- ignore an old test
codegen:
- fix
testing:
- better output while testing (when failed)
transforms:
- fix | diff --git a/ecmascript/ast/src/expr.rs b/ecmascript/ast/src/expr.rs
index 589d8c9294..70cac832a4 100644
--- a/ecmascript/ast/src/expr.rs
+++ b/ecmascript/ast/src/expr.rs
@@ -82,7 +82,22 @@ pub struct ArrayLit {
#[ast_node]
pub struct ObjectLit {
pub span: Span,
- pub props: Vec<Prop>,
+ pub props: Vec<Pro... | 23 | 360 | 219 |
f8ea0bdfea5d9ae732e7f56f2dc0127685f07598 | ๊ฐ๋์ค | 2018-11-16T11:25:38 | fix
It's not rust code.. | diff --git a/ecmascript/transforms/src/simplify/expr/mod.rs b/ecmascript/transforms/src/simplify/expr/mod.rs
index f7d15e9733..23b9182fb2 100644
--- a/ecmascript/transforms/src/simplify/expr/mod.rs
+++ b/ecmascript/transforms/src/simplify/expr/mod.rs
@@ -539,8 +539,9 @@ impl Fold<SeqExpr> for SimplifyExpr {
/// Fold... | 1 | 3 | 2 |
6234fd7a217acf578437b4fdcf7c54204bd72ee9 | ๊ฐ๋์ค | 2018-11-15T12:29:47 | parse "constructor"() as constructor (#56) | diff --git a/ecmascript/parser/src/parser/class_and_fn.rs b/ecmascript/parser/src/parser/class_and_fn.rs
index 018b1f3624..8d522c7e40 100644
--- a/ecmascript/parser/src/parser/class_and_fn.rs
+++ b/ecmascript/parser/src/parser/class_and_fn.rs
@@ -109,6 +109,10 @@ impl<'a, I: Input> Parser<'a, I> {
PropName... | 1 | 4 | 0 |
9c2bc94e56b03a5bc7a77a59cd90a23c5a0b0a08 | ๊ฐ๋์ค | 2018-06-28T06:17:22 | Use cargo override for darling | diff --git a/Cargo.toml b/Cargo.toml
index 216258bdc3..7eb4700971 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,4 +33,4 @@ features = [ "suggestions", "color" ]
debug = true
[patch.crates-io]
-darling = { git = "https://github.com/kdy1/darling", branch = "proc-macro2-nightly" }
\ No newline at end of file
+darlin... | 2 | 2 | 2 |
442302553d118833b12769c50c7f82ce810ebd7f | ๊ฐ๋์ค | 2018-03-08T02:04:25 | Fix library tests for parser | diff --git a/ecmascript/parser/src/lexer/number.rs b/ecmascript/parser/src/lexer/number.rs
index d627f7712d..f51d479d98 100644
--- a/ecmascript/parser/src/lexer/number.rs
+++ b/ecmascript/parser/src/lexer/number.rs
@@ -295,7 +295,7 @@ mod tests {
}
fn num(s: &'static str) -> f64 {
- lex(s, |l| l.read... | 7 | 223 | 187 |
0be4a5ef403a8aa00dd25e0551dcdac6714341c5 | ๊ฐ๋์ค | 2018-03-08T02:00:03 | Implement `#[fold(ignore)]` | diff --git a/macros/ast_node/src/fold.rs b/macros/ast_node/src/fold.rs
index 8aa5595e7d..6a8ee7a997 100644
--- a/macros/ast_node/src/fold.rs
+++ b/macros/ast_node/src/fold.rs
@@ -1,5 +1,18 @@
+use darling::FromField;
use swc_macros_common::prelude::*;
+#[derive(Debug, FromField)]
+#[darling(attributes(fold))]
+struc... | 2 | 74 | 0 |
57944ab70e69fcec412ff22e56c737a0baaa77b0 | ๊ฐ๋์ค | 2018-03-07T08:14:16 | Update parser to new ast.
Tests are not updated yet. | diff --git a/ecmascript/parser/src/lexer/mod.rs b/ecmascript/parser/src/lexer/mod.rs
index f0f8e3c1c0..b9b75f3e90 100644
--- a/ecmascript/parser/src/lexer/mod.rs
+++ b/ecmascript/parser/src/lexer/mod.rs
@@ -4,12 +4,12 @@
#![allow(unused_mut)]
#![allow(unused_variables)]
-
pub use self::input::Input;
use self::inp... | 10 | 328 | 315 |
61412069634ae010cdb1d808b976bcdbea8519d2 | ๊ฐ๋์ค | 2018-03-07T07:50:25 | Use spanned, interned string instead of raw string. | diff --git a/ecmascript/ast/src/lit.rs b/ecmascript/ast/src/lit.rs
index 09251ac16c..3cf145dd54 100644
--- a/ecmascript/ast/src/lit.rs
+++ b/ecmascript/ast/src/lit.rs
@@ -1,4 +1,5 @@
use std::fmt::{self, Display, Formatter};
+use swc_atoms::JsWord;
use swc_common::Span;
use swc_macros::ast_node;
@@ -14,7 +15,7 @@ ... | 2 | 7 | 6 |
7908aaa6c10055cd1a61e7c6966f800e87a83486 | ๊ฐ๋์ค | 2018-03-07T05:05:09 | Some more refinements for ast.
* All fields are public.
* Enabled some lints. | diff --git a/ecmascript/ast/src/expr.rs b/ecmascript/ast/src/expr.rs
index d71f2177cd..d6eed8c041 100644
--- a/ecmascript/ast/src/expr.rs
+++ b/ecmascript/ast/src/expr.rs
@@ -65,6 +65,7 @@ pub enum Expr {
}
#[ast_node]
+#[derive(Copy)]
pub struct ThisExpr {
pub span: Span,
}
@@ -223,6 +224,7 @@ pub struct Pa... | 5 | 29 | 13 |
160f5dc367625bd1098f1950419ff51401f6bc33 | ๊ฐ๋์ค | 2018-03-06T06:44:28 | Add RestPat | diff --git a/ecmascript/ast/src/lib.rs b/ecmascript/ast/src/lib.rs
index 2bf67b9d08..a12e46397d 100644
--- a/ecmascript/ast/src/lib.rs
+++ b/ecmascript/ast/src/lib.rs
@@ -22,7 +22,7 @@ pub use self::module_decl::{ExportAll, ExportDefaultDecl, ExportSpecifier, Impor
ModuleDecl, NamedExport};... | 2 | 10 | 2 |
00bcd8f9af838dded5e3977e53add504aefbd9b7 | ๊ฐ๋์ค | 2018-03-06T06:07:52 | Don't use #[ast_node] for temporary for-head | diff --git a/ecmascript/parser/src/parser/stmt/mod.rs b/ecmascript/parser/src/parser/stmt/mod.rs
index fb56a83230..6e529de392 100644
--- a/ecmascript/parser/src/parser/stmt/mod.rs
+++ b/ecmascript/parser/src/parser/stmt/mod.rs
@@ -635,7 +635,7 @@ impl<'a, I: Input> Parser<'a, I> {
}
}
-#[ast_node]
+#[derive(Deb... | 1 | 1 | 1 |
077e0c551ff7841744cb25cd273cc368dfe546cd | ๊ฐ๋์ค | 2018-03-04T06:17:52 | implement #[span] | diff --git a/Cargo.toml b/Cargo.toml
index 05687f80b0..dd65f0e68b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,4 +29,8 @@ features = [ "suggestions", "color" ]
[profile.bench]
-debug = true
\ No newline at end of file
+debug = true
+
+
+[patch.crates-io]
+darling = { git = "https://github.com/kdy1/darling", bra... | 16 | 214 | 75 |
3321ca590dc0710062e2a3cdffec091110c885c9 | ๊ฐ๋์ค | 2018-03-04T05:41:59 | implement Spanned for {Span, BytePos} | diff --git a/common/src/pos/mod.rs b/common/src/pos/mod.rs
index 7fe69f3f3e..939e150c65 100644
--- a/common/src/pos/mod.rs
+++ b/common/src/pos/mod.rs
@@ -11,6 +11,21 @@ pub trait Spanned {
fn span(&self) -> Span;
}
+impl Spanned for Span {
+ #[inline(always)]
+ fn span(&self) -> Span {
+ *self
+ ... | 1 | 15 | 0 |
d5ef2be32a3b8ae63d50826a68c5da2fd71f1c86 | ๊ฐ๋์ค | 2018-03-04T05:12:17 | reexport Fold properly | diff --git a/common/src/fold.rs b/common/src/fold.rs
index a14430fef8..150917f5e6 100644
--- a/common/src/fold.rs
+++ b/common/src/fold.rs
@@ -1,5 +1,3 @@
-#[deprecated = "Use Fold"]
-pub use self::Fold as Folder;
use either::Either;
use string_cache::{Atom, StaticAtomSet};
pub use swc_macros::Fold;
@@ -25,7 +23,7 @... | 3 | 12 | 12 |
e1764f907b1bff3881af3a75ff8389a8a8d7f459 | ๊ฐ๋์ค | 2018-03-03T10:00:57 | [WIP] Make ast nodes contain span
* `struct Expr` + `enum ExprKind` -> `enum Expr`
`Expr` / `ExprKind` approach does not work well with recursive
processing based on the type system because we can't access common
fields like span while processing child node like `MemberExpr`.
As ast processing is inherently recur... | diff --git a/common/Cargo.toml b/common/Cargo.toml
index 42add5d043..055d27f979 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -10,3 +10,4 @@ string_cache = "0.6"
either = "1.4"
rustc-ap-rustc_errors = "16"
rustc-ap-syntax_pos = "16"
+swc_macros = { path = "../macros" }
\ No newline at end of file
diff --... | 22 | 479 | 339 |
171abda3c0f58160ca79f0d0ef6ce35d82c04cf0 | ๊ฐ๋์ค | 2018-03-02T05:50:50 | Implement `#[derive(StringEnum)]` | diff --git a/ecmascript/ast/src/operators.rs b/ecmascript/ast/src/operators.rs
index b5ee93fba1..04129e4f85 100644
--- a/ecmascript/ast/src/operators.rs
+++ b/ecmascript/ast/src/operators.rs
@@ -1,6 +1,6 @@
-use swc_macros::{AstNode, Fold, Kind};
+use swc_macros::{AstNode, Fold, Kind, StringEnum};
-#[derive(Kind, Ast... | 8 | 296 | 8 |
c37454ca1fdf5a953e736d84239b2e1c92886780 | ๊ฐ๋์ค | 2018-03-01T05:09:22 | Use Span::def_site() instead of Span::call_site()
* Now rustdoc contains derived implementations. | diff --git a/macros/ast_node/src/fold.rs b/macros/ast_node/src/fold.rs
index b6d95763aa..3c3cc49f82 100644
--- a/macros/ast_node/src/fold.rs
+++ b/macros/ast_node/src/fold.rs
@@ -14,7 +14,7 @@ pub fn derive(input: DeriveInput) -> ItemImpl {
.map(|f| f.ty.clone())
.map(normalize_type_for_bound)
... | 9 | 41 | 47 |
67daa4c4e41a407c08026d9efbd27d927660f7f5 | ๊ฐ๋์ค | 2018-02-27T06:31:50 | Fix a test about float parser (#32)
See https://github.com/rust-lang/rust/pull/48235 | diff --git a/ecmascript/parser/src/lexer/number.rs b/ecmascript/parser/src/lexer/number.rs
index 586ce83ecc..1d02f29422 100644
--- a/ecmascript/parser/src/lexer/number.rs
+++ b/ecmascript/parser/src/lexer/number.rs
@@ -355,7 +355,7 @@ mod tests {
/// Valid even on strict mode.
const VALID_CASES: &[&str] = &["... | 1 | 7 | 2 |
59f11a83d16a82b1861a5bd6720ab264896028c4 | ๊ฐ๋์ค | 2018-01-27T04:42:04 | fixup! fix tests | diff --git a/ecmascript/parser/src/parser/pat.rs b/ecmascript/parser/src/parser/pat.rs
index 2b250d0c55..85d89ce6ff 100644
--- a/ecmascript/parser/src/parser/pat.rs
+++ b/ecmascript/parser/src/parser/pat.rs
@@ -196,6 +196,12 @@ impl<'a, I: Input> Parser<'a, I> {
syntax_error!(span, SyntaxError:... | 1 | 7 | 11 |
9b2a5880bb687973290281870822b21250ea36de | ๊ฐ๋์ค | 2018-01-23T12:38:48 | Use FileMap as an input. | diff --git a/ecmascript/Cargo.toml b/ecmascript/Cargo.toml
index a3022e29d4..296b80e0a2 100644
--- a/ecmascript/Cargo.toml
+++ b/ecmascript/Cargo.toml
@@ -7,5 +7,4 @@ authors = ["๊ฐ๋์ค <kdy1@outlook.kr>"]
swc_ecma_ast = { path = "./ast" }
swc_ecma_parser = { path = "./parser" }
-
[dev-dependencies]
diff --git a/ecma... | 8 | 82 | 66 |
a0ece79b0daeb134a6ddfe3c625436186653bc90 | ๊ฐ๋์ค | 2018-01-22T13:07:39 | Add cli api to parse js file. | diff --git a/Cargo.toml b/Cargo.toml
index f8d8713c1d..8172f3a135 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,6 +7,8 @@ authors = ["๊ฐ๋์ค <kdy1@outlook.kr>"]
[dependencies]
libswc = { path = "./swc" }
+swc_common = { path = "./common" }
+
rayon = "0.9"
slog = "2"
slog-envlogger = "2.1"
diff --git a/src/main.rs ... | 3 | 55 | 7 |
e75836882bf3c8507bf3c0d32e6813452f37a8ae | ๊ฐ๋์ค | 2018-01-21T10:33:27 | Use box for Diagnostic | diff --git a/common/src/errors/diagnostic.rs b/common/src/errors/diagnostic.rs
index c9946ebd93..8c6e791aa2 100644
--- a/common/src/errors/diagnostic.rs
+++ b/common/src/errors/diagnostic.rs
@@ -6,7 +6,7 @@ use std::fmt;
#[must_use]
pub struct Diagnostic<'a> {
- db: Builder<'a>,
+ db: Box<Builder<'a>>,
}
... | 1 | 2 | 2 |
d6e61f9638b14ffcba5186e6ce2feb15031bb0b5 | ๊ฐ๋์ค | 2018-01-16T02:35:05 | Make expression and statement consistent. Fixes #19 | diff --git a/ecmascript/ast/src/decl.rs b/ecmascript/ast/src/decl.rs
index c8ed6025c1..984fa858d1 100644
--- a/ecmascript/ast/src/decl.rs
+++ b/ecmascript/ast/src/decl.rs
@@ -5,9 +5,7 @@ use swc_macros::ast_node;
#[ast_node]
pub enum Decl {
Class(ClassDecl),
-
- Fn { ident: Ident, function: Function },
-
+ ... | 15 | 462 | 427 |
fd5b4d0dc07c4d08069a17011cd18d65219eb56a | ๊ฐ๋์ค | 2018-01-14T05:00:01 | Revert "Merge remote-tracking branch 'refs/remotes/origin/simplifier'"
This reverts commit 43fcbcbef2203ba9840bda93391859e7c7d3c283, reversing
changes made to 15fde7b5ffeb8cabd3da37f1fb6a7a358bd4ebb1. | diff --git a/atoms/build.rs b/atoms/build.rs
index 5b43c1a820..787df518c3 100644
--- a/atoms/build.rs
+++ b/atoms/build.rs
@@ -66,18 +66,6 @@ fn main() {
"private",
"protected",
"public",
- // Used by transforms.
- "Array",
- "Object",
- ... | 12 | 0 | 1,253 |
5a1c844549b00a1bc14c76610e5c8e31508ee57e | ๊ฐ๋์ค | 2018-01-14T04:33:09 | [WIP] simplifier | diff --git a/ecmascript/transforms/src/lib.rs b/ecmascript/transforms/src/lib.rs
index 52cc8ce370..a2d1ccbacc 100644
--- a/ecmascript/transforms/src/lib.rs
+++ b/ecmascript/transforms/src/lib.rs
@@ -5,7 +5,10 @@
#[macro_use]
pub extern crate swc_atoms;
pub extern crate swc_common;
+#[macro_use]
pub extern crate swc... | 8 | 591 | 145 |
015ccb07f4178b73f55c8e895d187fd746cca33e | ๊ฐ๋์ค | 2018-01-13T09:39:10 | [WIP] Working for simplfier | diff --git a/ecmascript/Cargo.toml b/ecmascript/Cargo.toml
index a3022e29d4..125a9792a8 100644
--- a/ecmascript/Cargo.toml
+++ b/ecmascript/Cargo.toml
@@ -6,6 +6,7 @@ authors = ["๊ฐ๋์ค <kdy1@outlook.kr>"]
[dependencies]
swc_ecma_ast = { path = "./ast" }
swc_ecma_parser = { path = "./parser" }
+swc_ecma_transforms = { ... | 8 | 733 | 0 |
8d62017d8861a3df7f97dcf135c3b23fecbd66ad | ๊ฐ๋์ค | 2018-01-13T08:42:57 | add atoms for transformers | diff --git a/atoms/build.rs b/atoms/build.rs
index 787df518c3..5b43c1a820 100644
--- a/atoms/build.rs
+++ b/atoms/build.rs
@@ -66,6 +66,18 @@ fn main() {
"private",
"protected",
"public",
+ // Used by transforms.
+ "Array",
+ "Object",
+ ... | 1 | 12 | 0 |
15fde7b5ffeb8cabd3da37f1fb6a7a358bd4ebb1 | ๊ฐ๋์ค | 2018-01-14T04:29:57 | add op! macro | diff --git a/ecmascript/ast/src/lib.rs b/ecmascript/ast/src/lib.rs
index eeef6ad023..a6979fb943 100644
--- a/ecmascript/ast/src/lib.rs
+++ b/ecmascript/ast/src/lib.rs
@@ -25,6 +25,7 @@ use swc_atoms::JsWord;
use swc_common::{Span, Spanned};
use swc_macros::AstNode;
+mod macros;
mod class;
mod decl;
mod expr;
dif... | 4 | 73 | 18 |
6582429013df8a1d148db85569d1741fa02289db | ๊ฐ๋์ค | 2018-01-13T09:57:37 | remove unused parser codes. | diff --git a/common/src/lib.rs b/common/src/lib.rs
index 67c6658c90..632ca1f94e 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -16,7 +16,6 @@ pub use self::span::{BytePos, Span, Spanned};
pub mod compat;
pub mod fold;
-pub mod parser;
mod ast_node;
mod gen_iter;
mod span;
diff --git a/common/src/parse... | 2 | 0 | 9 |
4a9d66a0f320bb5e1770ce417f6f9ccdb5c7219b | ๊ฐ๋์ค | 2018-01-12T11:22:45 | update test262.rs | diff --git a/ecmascript/parser/tests/test262.rs b/ecmascript/parser/tests/test262.rs
index d2afe1c4f7..086a5a9466 100644
--- a/ecmascript/parser/tests/test262.rs
+++ b/ecmascript/parser/tests/test262.rs
@@ -6,7 +6,7 @@
#[macro_use]
extern crate slog;
extern crate swc_common;
-extern crate swc_ecmascript;
+extern cra... | 1 | 4 | 4 |
7291667a193e21908f4c8f3d0fb64736188aa477 | ๊ฐ๋์ค | 2018-01-13T08:45:05 | use F: Folder<T> instead of T: FoldWith<F> | diff --git a/common/src/fold.rs b/common/src/fold.rs
index 56121849af..2cbe55873b 100644
--- a/common/src/fold.rs
+++ b/common/src/fold.rs
@@ -28,7 +28,7 @@ impl<F> FoldWith<F> for ! {
impl<T, F> FoldWith<F> for Box<T>
where
- T: FoldWith<F>,
+ F: Folder<T>,
{
fn fold_children(self, f: &mut F) -> Self {... | 1 | 4 | 4 |
4608398a2d0d6c99d88ec052b94d45f184cf7ca4 | Kenny Kerr | 2026-04-08T15:13:10 | Adds a test for the OS-provided implementation of `ELEMENT_TYPE_CMOD_REQD` parameters (#4160) | diff --git a/crates/tests/libs/windows/Cargo.toml b/crates/tests/libs/windows/Cargo.toml
new file mode 100644
index 000000000..e3ea4d3de
--- /dev/null
+++ b/crates/tests/libs/windows/Cargo.toml
@@ -0,0 +1,18 @@
+[package]
+name = "test_windows"
+version = "0.0.0"
+edition = "2021"
+publish = false
+
+[lib]
+doc = false... | 3 | 35 | 0 |
0c719dc00a82707dd2b1f47ee9f097a2560b0777 | Copilot | 2026-04-07T18:39:37 | Fix TODOs in into_impl.rs: implement GetMany and simplify collect (#4153)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/tests/libs/implement/tests/into_impl.rs b/crates/tests/libs/implement/tests/into_impl.rs
index ca97961d9..9f6733607 100644
--- a/crates/tests/libs/implement/tests/into_impl.rs
+++ b/crates/tests/libs/implement/tests/into_impl.rs
@@ -7,12 +7,12 @@ use windows_collections::*;
)]
struct Iterator<T>(s... | 1 | 23 | 14 |
25215b96b8681a11ed985214816a51451e0cd20d | Copilot | 2026-04-07T17:51:21 | Replace runtime assert with compile-time const assert in AgileReference (#4150)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/core/src/agile_reference.rs b/crates/libs/core/src/agile_reference.rs
index 74609a7a8..3c271eaa6 100644
--- a/crates/libs/core/src/agile_reference.rs
+++ b/crates/libs/core/src/agile_reference.rs
@@ -9,10 +9,7 @@ pub struct AgileReference<T>(imp::IAgileReference, PhantomData<T>);
impl<T: Inter... | 1 | 1 | 4 |
4c95996f118b7307992afc0475d63221d55125d6 | Copilot | 2026-04-07T17:50:41 | Remove stale TODO comment in events_client test (#4151)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/tests/winrt/events_client/src/lib.rs b/crates/tests/winrt/events_client/src/lib.rs
index b4bfd0546..3852bf201 100644
--- a/crates/tests/winrt/events_client/src/lib.rs
+++ b/crates/tests/winrt/events_client/src/lib.rs
@@ -26,7 +26,6 @@ fn test() -> Result<()> {
assert_eq!(0, class.Signal(3)?);
... | 1 | 0 | 1 |
65afd6723976d8924e163bad274c2b761b28f971 | Copilot | 2026-04-07T17:50:18 | Fix TODO: change Index::get to return an iterator instead of Option (#4152)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/rdl/src/reader/index.rs b/crates/libs/rdl/src/reader/index.rs
index a31139406..6862e1fec 100644
--- a/crates/libs/rdl/src/reader/index.rs
+++ b/crates/libs/rdl/src/reader/index.rs
@@ -73,11 +73,12 @@ impl<'a> Index<'a> {
.unwrap_or(false)
}
- pub fn get(&self, namespace: ... | 2 | 4 | 3 |
c0c8d6301ca1bb0d430d2cd56c144901a6ed77c9 | Copilot | 2026-04-07T17:49:33 | Add test for implementing two different generic instantiations on a single struct (#4154)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/tests/libs/implement/tests/generic_primitive.rs b/crates/tests/libs/implement/tests/generic_primitive.rs
index fdffb2ec5..877139aa0 100644
--- a/crates/tests/libs/implement/tests/generic_primitive.rs
+++ b/crates/tests/libs/implement/tests/generic_primitive.rs
@@ -1,8 +1,6 @@
use windows::core::*;
... | 2 | 55 | 2 |
04c1dd4b62e1cc6336f14998b987c91fd7ee5551 | Copilot | 2026-04-07T16:31:53 | windows-rdl: error on WinRT types referring to non-WinRT types (#4147)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/reader/attribute.rs b/crates/libs/rdl/src/reader/attribute.rs
index cf2cef9d8..94c9908dd 100644
--- a/crates/libs/rdl/src/reader/attribute.rs
+++ b/crates/libs/rdl/src/reader/attribute.rs
@@ -80,7 +80,11 @@ impl Encoder<'_> {
let mut params = vec![];
for arg ... | 8 | 188 | 4 |
1ec3db9958f3cd3ca3359aa56965ddeee1c4ff87 | Copilot | 2026-04-06T18:29:25 | Fix `interface` macro to derive parent vtable type via `Interface::Vtable` trait (#4145)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs
index 9c65736e7..29ad0c236 100644
--- a/crates/libs/interface/src/lib.rs
+++ b/crates/libs/interface/src/lib.rs
@@ -403,12 +403,9 @@ impl Interface {
}
fn parent_vtable(&self) -> Option<proc_macro2::TokenStream> {
- if l... | 6 | 8 | 12 |
56a5718ae5d454e51437f3bd13ae8c2577f06c37 | Copilot | 2026-04-06T17:30:30 | Fix `windows-rdl` error on missing enum type in attribute args instead of silent integer fallback (#4142)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/writer/attribute.rs b/crates/libs/rdl/src/writer/attribute.rs
index f3c403c35..9eb00ba63 100644
--- a/crates/libs/rdl/src/writer/attribute.rs
+++ b/crates/libs/rdl/src/writer/attribute.rs
@@ -1,12 +1,13 @@
use super::*;
-pub fn write_attribute(item: &metadata::reader::TypeDef) -> Tok... | 10 | 159 | 76 |
5d0945666bf766813980716f2060196d54c3f511 | Charles Milette | 2026-04-06T16:41:55 | Support for inline generic bounds (#4141) | diff --git a/crates/libs/implement/src/gen.rs b/crates/libs/implement/src/gen.rs
index d6a31c114..978bfc26f 100644
--- a/crates/libs/implement/src/gen.rs
+++ b/crates/libs/implement/src/gen.rs
@@ -40,10 +40,11 @@ pub(crate) fn gen_all(inputs: &ImplementInputs) -> Vec<syn::Item> {
fn gen_original_impl(inputs: &Implemen... | 5 | 87 | 32 |
948deeef834d4b1f0e8c5bc01815b39d6668bc73 | Copilot | 2026-04-06T15:36:32 | windows-rdl writer: add `writer_err!` macro to reduce error construction boilerplate (#4140)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/writer/callback.rs b/crates/libs/rdl/src/writer/callback.rs
index 2d41d8cc1..61ad00bc4 100644
--- a/crates/libs/rdl/src/writer/callback.rs
+++ b/crates/libs/rdl/src/writer/callback.rs
@@ -1,13 +1,13 @@
use super::*;
-pub fn write_callback(item: &metadata::reader::TypeDef) -> TokenStr... | 8 | 339 | 109 |
126442e003ab8adfd39d9141b9f0d078b1b5a7b3 | Copilot | 2026-04-04T11:38:22 | Refactor windows-rdl: extract shared helpers and eliminate duplicated code (#4137)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/reader/attribute_ref.rs b/crates/libs/rdl/src/reader/attribute_ref.rs
index e3afc3d87..42f3902ba 100644
--- a/crates/libs/rdl/src/reader/attribute_ref.rs
+++ b/crates/libs/rdl/src/reader/attribute_ref.rs
@@ -1,3 +1,4 @@
+use super::guid;
use super::*;
/// A parsed and validated refe... | 14 | 209 | 322 |
aa94f37a29d9a1c4e8adffa1c5e0b1ea067556d4 | Kenny Kerr | 2026-04-04T01:44:43 | Speed up RDL roundtrip testing (#4136) | diff --git a/crates/tests/libs/rdl/tests/roundtrip.rs b/crates/tests/libs/rdl/tests/roundtrip.rs
index 6b1d22276..03687162b 100644
--- a/crates/tests/libs/rdl/tests/roundtrip.rs
+++ b/crates/tests/libs/rdl/tests/roundtrip.rs
@@ -11,20 +11,29 @@ fn roundtrip() {
for path in &paths {
let winmd = path.with... | 1 | 19 | 10 |
f4acd01140fe175f785c8e9fb5e2d7937276df69 | Kenny Kerr | 2026-04-03T18:22:39 | Restrict `RAIIFreeAttribute` in `windows-bindgen` (#4130) | diff --git a/crates/libs/bindgen/src/config/cpp_handle.rs b/crates/libs/bindgen/src/config/cpp_handle.rs
index c4553aa0c..b76cf4915 100644
--- a/crates/libs/bindgen/src/config/cpp_handle.rs
+++ b/crates/libs/bindgen/src/config/cpp_handle.rs
@@ -64,17 +64,6 @@ impl Config<'_> {
} else {
... | 8 | 6 | 326 |
ad0bfe0905349fa0e99e3a8b801b42962f323818 | Kenny Kerr | 2026-04-03T17:52:48 | Remove test all tool (#4128) | diff --git a/crates/tools/test_all/Cargo.toml b/crates/tools/test_all/Cargo.toml
deleted file mode 100644
index e6b771a5d..000000000
--- a/crates/tools/test_all/Cargo.toml
+++ /dev/null
@@ -1,11 +0,0 @@
-[package]
-name = "tool_test_all"
-version = "0.0.0"
-edition = "2021"
-publish = false
-
-[dependencies]
-helpers =... | 2 | 0 | 24 |
e501761cd607a7fc0b6669973a5a41691f29a719 | Copilot | 2026-04-03T11:23:19 | Add Bindgen builder pattern to windows-bindgen; refactor bindgen() to delegate to it (#4113)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs
index 0dc2608c1..1ca55531f 100644
--- a/crates/libs/bindgen/src/lib.rs
+++ b/crates/libs/bindgen/src/lib.rs
@@ -308,28 +308,9 @@ where
S: AsRef<str>,
{
let args = expand_args(args);
+ let mut builder = Bindgen::new();
let mu... | 1 | 352 | 139 |
26b48b4ef04741c50d139b82f0d2b84bc5e55233 | Kenny Kerr | 2026-04-02T17:02:53 | Update riddle to support both reading and writing (#4116) | diff --git a/crates/libs/rdl/src/reader/mod.rs b/crates/libs/rdl/src/reader/mod.rs
index 1461d5396..c4485f63a 100644
--- a/crates/libs/rdl/src/reader/mod.rs
+++ b/crates/libs/rdl/src/reader/mod.rs
@@ -59,6 +59,18 @@ impl Reader {
self
}
+ pub fn inputs<I, S>(&mut self, inputs: I) -> &mut Self
+ wh... | 5 | 74 | 15 |
4fe5c0830099a469549f11778235ef91d815db84 | Copilot | 2026-03-31T20:07:55 | Fix build script cargo hints: missing rerun-if-changed + remove redundant build.rs hint (#4112)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/samples/windows-sys/task_dialog/build.rs b/crates/samples/windows-sys/task_dialog/build.rs
index 00f1a307a..c4da3a55f 100644
--- a/crates/samples/windows-sys/task_dialog/build.rs
+++ b/crates/samples/windows-sys/task_dialog/build.rs
@@ -1,6 +1,4 @@
fn main() {
- println!("cargo:rerun-if-changed=... | 16 | 23 | 7 |
43596048c13f84dff4c97d74b426dbf2476b86a8 | Kenny Kerr | 2026-03-30T19:07:55 | Add riddle command line driver (#4110) | diff --git a/crates/libs/rdl/src/error.rs b/crates/libs/rdl/src/error.rs
index d6b50e92a..59005682b 100644
--- a/crates/libs/rdl/src/error.rs
+++ b/crates/libs/rdl/src/error.rs
@@ -35,8 +35,10 @@ impl std::fmt::Display for Error {
self.line,
self.column + 1
)
+ } el... | 2 | 51 | 2 |
77edef4cec65a9c684956ebd8d4b4fb5e7e2f89f | Copilot | 2026-03-28T13:24:04 | Remove redundant tests from test_winrt and reduce heavy WinRT feature dependencies (#4103)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/tests/winrt/old/Cargo.toml b/crates/tests/winrt/old/Cargo.toml
index 98e5f91bc..de474da38 100644
--- a/crates/tests/winrt/old/Cargo.toml
+++ b/crates/tests/winrt/old/Cargo.toml
@@ -11,9 +11,6 @@ doctest = false
[dependencies.windows-collections]
workspace = true
-[dependencies.windows-numerics]
... | 13 | 0 | 676 |
d46ec97644a4ebdf4a13cff5c4c6efa5cd6d6f32 | Copilot | 2026-03-27T22:16:09 | windows-rdl: reader input() accepts both .rdl and .winmd files (#4099)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/lib.rs b/crates/libs/rdl/src/lib.rs
index dea1de9de..79ee41f7a 100644
--- a/crates/libs/rdl/src/lib.rs
+++ b/crates/libs/rdl/src/lib.rs
@@ -65,3 +65,60 @@ fn expand_files(inputs: &[String], extension: &str) -> Result<Vec<String>, Error
Ok(result)
}
+
+fn expand_input_paths(input... | 19 | 81 | 33 |
60f4f3b1598ecd36eb3e9a4292ae55b202cbe632 | Copilot | 2026-03-25T19:54:15 | Add type-name filtering to windows-rdl writer (#4072)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/writer/mod.rs b/crates/libs/rdl/src/writer/mod.rs
index 5707e2ca9..250cdecd2 100644
--- a/crates/libs/rdl/src/writer/mod.rs
+++ b/crates/libs/rdl/src/writer/mod.rs
@@ -53,13 +53,15 @@ impl Writer {
self
}
- /// Filter namespaces to include in the output. Each call ap... | 2 | 189 | 31 |
b111caf63de68e6dfd4e6025e9433ef94420dee4 | Copilot | 2026-03-25T14:03:34 | Split `Type::Name` into `Type::ClassName` and `Type::ValueName` in windows-metadata (#4070)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/bindgen/src/types/cpp_const.rs b/crates/libs/bindgen/src/types/cpp_const.rs
index cfb3e09d0..0708bf359 100644
--- a/crates/libs/bindgen/src/types/cpp_const.rs
+++ b/crates/libs/bindgen/src/types/cpp_const.rs
@@ -32,7 +32,9 @@ impl CppConst {
}
pub fn write(&self, config: &Config) ->... | 21 | 163 | 72 |
3e82b1a4d08ccd565a8c259b4dd36dbf845cb328 | Kenny Kerr | 2026-03-23T20:18:37 | Ability to query and set assembly name from `windows-metadata` and `windows-rdl` (#4068) | diff --git a/crates/libs/metadata/src/reader/file.rs b/crates/libs/metadata/src/reader/file.rs
index 750365ce4..453685e3d 100644
--- a/crates/libs/metadata/src/reader/file.rs
+++ b/crates/libs/metadata/src/reader/file.rs
@@ -4,7 +4,7 @@ pub struct File {
bytes: Vec<u8>,
strings: usize,
blobs: usize,
- ... | 9 | 163 | 72 |
03d52749a7d132ed17006f38862f2855e45fa61a | Copilot | 2026-03-23T19:41:31 | Replace logos-based RDL formatter with proc_macro2 TokenTree traversal (#4064)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/Cargo.toml b/crates/libs/rdl/Cargo.toml
index a3ca9aec7..e6ee5cf5d 100644
--- a/crates/libs/rdl/Cargo.toml
+++ b/crates/libs/rdl/Cargo.toml
@@ -13,7 +13,6 @@ readme = "readme.md"
workspace = true
[dependencies]
-logos = "0.16"
windows-metadata = { workspace = true }
syn = { workspace ... | 2 | 153 | 339 |
63e07e6d828591764bbb3ba91845417bd1666ecf | Rafael Rivera | 2026-03-23T14:09:29 | Align metadata PE headers with loader expectations (#4065) | diff --git a/crates/libs/metadata/src/writer/file/into_stream.rs b/crates/libs/metadata/src/writer/file/into_stream.rs
index a5473d250..5bf963f38 100644
--- a/crates/libs/metadata/src/writer/file/into_stream.rs
+++ b/crates/libs/metadata/src/writer/file/into_stream.rs
@@ -171,7 +171,6 @@ impl File {
+ ... | 2 | 50 | 3 |
ead3f1269eaa8bb4d73af714ea6f51c6bfd55577 | Kenny Kerr | 2026-03-19T21:46:00 | Fix `windows-rdl` support for multi-arch definitions (#4048) | diff --git a/crates/libs/rdl/src/writer/layout.rs b/crates/libs/rdl/src/writer/layout.rs
index 0867be124..623d8e093 100644
--- a/crates/libs/rdl/src/writer/layout.rs
+++ b/crates/libs/rdl/src/writer/layout.rs
@@ -3,8 +3,8 @@ use super::*;
#[derive(Default)]
pub struct Layout {
modules: BTreeMap<String, Layout>,
... | 2 | 7 | 34 |
3ca7a71bf4b743ee2a17c8fc9d4fdf45757135a2 | Copilot | 2026-03-19T20:02:32 | Fix: `#[opt]` dropped when preceding `#[out]` on a parameter (#4045)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/reader/param.rs b/crates/libs/rdl/src/reader/param.rs
index 6ea055f84..64657edf5 100644
--- a/crates/libs/rdl/src/reader/param.rs
+++ b/crates/libs/rdl/src/reader/param.rs
@@ -16,22 +16,19 @@ pub fn param(encoder: &mut Encoder, param: &syn::PatType) -> Result<Param, Error
let ty ... | 2 | 48 | 6 |
5ce044f87d55db7583db2c6bedab818ee935fb7a | Copilot | 2026-03-19T18:28:33 | Resolve TODO comments in windows-metadata and windows-rdl crates (#4041)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/metadata/src/writer/file/mod.rs b/crates/libs/metadata/src/writer/file/mod.rs
index 54356af44..76c95039c 100644
--- a/crates/libs/metadata/src/writer/file/mod.rs
+++ b/crates/libs/metadata/src/writer/file/mod.rs
@@ -21,6 +21,7 @@ pub struct File {
// Indexes for fast lookup of preexistin... | 3 | 16 | 8 |
62315fdeaecc26d27ca049b95075490f6df88320 | Kenny Kerr | 2026-03-18T20:51:08 | Fix roundtrip reference (#4036) | diff --git a/crates/tools/rdl_roundtrip/src/main.rs b/crates/tools/rdl_roundtrip/src/main.rs
index b51e84d03..7e6640f28 100644
--- a/crates/tools/rdl_roundtrip/src/main.rs
+++ b/crates/tools/rdl_roundtrip/src/main.rs
@@ -8,7 +8,12 @@ fn roundtrip(winmd: &str, rdl: &str, filter: &[&str]) {
}
w.write().unwrap()... | 1 | 6 | 1 |
d3f83f2057a523625a9b991a317ce9ba90a7b33b | Kenny Kerr | 2026-03-18T16:06:53 | Add simple roundtrip timer for diagnostics (#4033) | diff --git a/crates/tools/rdl_roundtrip/src/main.rs b/crates/tools/rdl_roundtrip/src/main.rs
index 67b0f4b29..1780d364e 100644
--- a/crates/tools/rdl_roundtrip/src/main.rs
+++ b/crates/tools/rdl_roundtrip/src/main.rs
@@ -14,6 +14,8 @@ fn roundtrip(winmd: &str, rdl: &str) {
}
fn main() {
+ let time = std::time::I... | 1 | 4 | 0 |
0a7453c45ddc717ee729a028ef9b2fcf69756491 | Copilot | 2026-03-17T20:45:46 | Review windows-numerics: fix ฯ literal, add Neg trait for vectors, cross product, and expand test coverage (#4015)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/numerics/src/lib.rs b/crates/libs/numerics/src/lib.rs
index 4aca65e50..756c2a25e 100644
--- a/crates/libs/numerics/src/lib.rs
+++ b/crates/libs/numerics/src/lib.rs
@@ -1,4 +1,4 @@
-#![expect(missing_docs, non_snake_case, clippy::all)]
+#![expect(missing_docs, non_snake_case)]
#![doc = include_... | 7 | 465 | 2 |
6ed676efd45aabfcaf95aed0c30e772f53aa69a1 | Kenny Kerr | 2026-03-17T17:50:52 | `windows-rdl` exclude all `System` namespaces (#4027) | diff --git a/crates/libs/rdl/src/writer/mod.rs b/crates/libs/rdl/src/writer/mod.rs
index 5cd7a96b4..f4d5a3c87 100644
--- a/crates/libs/rdl/src/writer/mod.rs
+++ b/crates/libs/rdl/src/writer/mod.rs
@@ -280,7 +280,9 @@ fn write_custom_attributes_except<'a>(
exclude: &[&str],
) -> Vec<TokenStream> {
attributes
... | 2 | 4 | 1 |
b16245605b2992b1e4998c861445f3b33bd73894 | Kenny Kerr | 2026-03-16T21:25:37 | `windows-rdl` the writer must skip unknown `System` attributes (#4019) | diff --git a/crates/libs/metadata/src/reader/tables/attribute.rs b/crates/libs/metadata/src/reader/tables/attribute.rs
index 2afced328..a4e4cc47a 100644
--- a/crates/libs/metadata/src/reader/tables/attribute.rs
+++ b/crates/libs/metadata/src/reader/tables/attribute.rs
@@ -13,6 +13,10 @@ impl<'a> Attribute<'a> {
... | 2 | 6 | 2 |
69189d197816d26996c955f069ef5b657e2a1e58 | Kenny Kerr | 2026-03-16T20:11:15 | Use `windows-rdl` reader/writer universally (#4017) | diff --git a/crates/libs/rdl/src/reader/attribute_ref.rs b/crates/libs/rdl/src/reader/attribute_ref.rs
index 8382b16c6..9025176d2 100644
--- a/crates/libs/rdl/src/reader/attribute_ref.rs
+++ b/crates/libs/rdl/src/reader/attribute_ref.rs
@@ -583,7 +583,7 @@ pub fn encode_attrs(
#[test]
#[should_panic(expected = "error... | 13 | 40 | 40 |
e7c1e45b7c2d5ee8dbf88b1888397e07e75d2977 | Copilot | 2026-03-16T19:13:32 | Fix windows-future: join() deadlock, null-handler lock-out, unverified test callbacks (#4016)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/future/src/async.rs b/crates/libs/future/src/async.rs
index d6a5bf50e..1a50e78e0 100644
--- a/crates/libs/future/src/async.rs
+++ b/crates/libs/future/src/async.rs
@@ -32,13 +32,14 @@ pub trait Async: Interface {
// Waits for the async execution to finish and then returns the results.
... | 4 | 44 | 3 |
059ae5b5a247569864c5701eecc82ace56454a40 | Copilot | 2026-03-16T17:51:01 | Fix windows-collections: GetMany overflow guard, IndexOf result reset, add tests (#4014)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/collections/src/iterable.rs b/crates/libs/collections/src/iterable.rs
index 759fd909c..474b1d153 100644
--- a/crates/libs/collections/src/iterable.rs
+++ b/crates/libs/collections/src/iterable.rs
@@ -72,6 +72,11 @@ where
fn GetMany(&self, values: &mut [T::Default]) -> Result<u32> {
... | 3 | 27 | 1 |
45a6169b1c5ca20103afe3d8fc011ebf7fc88484 | Copilot | 2026-03-16T15:23:43 | Add reader() and writer() convenience functions to windows-rdl (#4013)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/rdl/src/lib.rs b/crates/libs/rdl/src/lib.rs
index 4fa0f4159..dea1de9de 100644
--- a/crates/libs/rdl/src/lib.rs
+++ b/crates/libs/rdl/src/lib.rs
@@ -12,6 +12,14 @@ pub use error::Error;
pub use reader::Reader;
pub use writer::Writer;
+pub fn reader() -> Reader {
+ Reader::new()
+}
+
+pub ... | 46 | 103 | 95 |
5a8cffd1673533b5c1dcc2b01ef1f18ea375e420 | Copilot | 2026-03-15T01:19:56 | Resolve actionable TODO items across rdl, bindgen, metadata, and direct2d (#4004)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/bindgen/src/types/cpp_delegate.rs b/crates/libs/bindgen/src/types/cpp_delegate.rs
index a5a970c10..1240c039f 100644
--- a/crates/libs/bindgen/src/types/cpp_delegate.rs
+++ b/crates/libs/bindgen/src/types/cpp_delegate.rs
@@ -61,7 +61,7 @@ impl CppDelegate {
Value::I32(1) => ... | 9 | 42 | 15 |
0ccbe11f84001318cf3423b35a888af7dde669df | Copilot | 2026-03-14T23:25:57 | Eliminate dead code in crates/libs/* and remove unnecessary suppressions (#4003)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs
index 4763fa057..0dc2608c1 100644
--- a/crates/libs/bindgen/src/lib.rs
+++ b/crates/libs/bindgen/src/lib.rs
@@ -1,7 +1,6 @@
#![doc = include_str!("../readme.md")]
#![expect(
non_upper_case_globals,
- dead_code,
clippy::enum_vari... | 15 | 8 | 115 |
45d45c7d6a1f5697b2ba4666bc78d731189992a5 | Copilot | 2026-03-14T22:39:56 | windows-bindgen: deduplicate write_cfg implementations (#4002)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/bindgen/src/types/class.rs b/crates/libs/bindgen/src/types/class.rs
index 0b77b34e8..42e90d235 100644
--- a/crates/libs/bindgen/src/types/class.rs
+++ b/crates/libs/bindgen/src/types/class.rs
@@ -11,13 +11,7 @@ impl Class {
}
fn write_cfg(&self, config: &Config) -> (Cfg, TokenStream... | 9 | 28 | 46 |
56195c8415a50834a59e1835d6e80139391f9c98 | Copilot | 2026-03-14T22:39:23 | Fix bugs in windows-metadata crate (#4001)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/metadata/src/lib.rs b/crates/libs/metadata/src/lib.rs
index bc006ecf1..649daaa42 100644
--- a/crates/libs/metadata/src/lib.rs
+++ b/crates/libs/metadata/src/lib.rs
@@ -26,8 +26,8 @@ pub use signature::*;
pub use reader::{AsRow, HasAttributes};
pub fn trim_tick(name: &str) -> &str {
- if ... | 5 | 10 | 9 |
dbb25e81b31bb8d0dbc96995e8eb5fca118b04f0 | Copilot | 2026-03-14T16:51:42 | Fix windows-rdl: replace panics with proper errors, add attribute validation and tests (#3999)
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/rdl/src/formatter/mod.rs b/crates/libs/rdl/src/formatter/mod.rs
index b4c26f873..a33ded09b 100644
--- a/crates/libs/rdl/src/formatter/mod.rs
+++ b/crates/libs/rdl/src/formatter/mod.rs
@@ -101,13 +101,13 @@ pub fn format(input: &str) -> String {
let mut token_idx = 0;
while token_idx... | 5 | 93 | 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.