Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 9 additions & 40 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,52 +1,21 @@
# workaround for getting workspace root dir, reference: https://github.com/rust-lang/cargo/issues/3946
[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }

[alias]
lint = "clippy --workspace --all-targets -- --deny warnings"
# AKA `test-update`, handy cargo rst update without install `cargo-rst` binary
t = "test --no-fail-fast"
tu = "run -p cargo-rst -- update"
build-wasi = "build --target wasm32-wasi"
build-wasm32 = "build --target wasm32-unknown-unknown"

[target.'cfg(all())']
rustflags = [
# CLIPPY LINT SETTINGS
# This is a workaround to configure lints for the entire workspace, pending the ability to configure this via TOML.
# See: `https://github.com/rust-lang/cargo/issues/5034`
# `https://github.com/EmbarkStudios/rust-ecosystem/issues/22#issuecomment-947011395`
"-Wclippy::all", # all lints that are on by default (correctness, suspicious, style, complexity, perf)

# restriction
"-Wclippy::dbg_macro",
"-Wclippy::unwrap_in_result",
"-Wclippy::unwrap_used",
"-Wclippy::empty_drop",
"-Wclippy::exit",
"-Wclippy::empty_structs_with_brackets",
"-Wclippy::rc_buffer",
"-Wclippy::rc_mutex",
"-Wclippy::same_name_method",

"-Aclippy::default_constructed_unit_structs",
]
# To be able to run unit tests on macOS, support compilation to 'x86_64-apple-darwin'.
[target.'cfg(target_vendor = "apple")']
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-no_fixup_chains,-all_load"]

# To be able to run unit tests on Linux, support compilation to 'x86_64-unknown-linux-gnu'.
[target.'cfg(target_os = "linux")']
rustflags = ["-C", "link-args=-Wl,--warn-unresolved-symbols"]

# To be able to run unit tests on Windows, support compilation to 'x86_64-pc-windows-msvc'.
[target.'cfg(target_os = "windows")']
rustflags = ["-C", "link-args=/FORCE"]
rustflags = [
"-C", "link-args=/FORCE",
"-C", "link-args=/NODEFAULTLIB:libucrt.lib",
"-C", "link-args=/DEFAULTLIB:ucrt.lib"
]

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
37 changes: 0 additions & 37 deletions .github/actions/clone-crates/action.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/actions/pnpm-cache/action.yml

This file was deleted.

86 changes: 0 additions & 86 deletions .github/actions/rustup/action.yml

This file was deleted.

81 changes: 81 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"enabledManagers": [
"npm",
"cargo"
],
"packageRules": [
{
"matchPackageNames": [
"@napi-rs/**"
],
"enabled": false,
"description": "Disable updates for napi-rs packages"
},
{
"matchPackageNames": [
"napi",
"napi-**"
],
"enabled": false,
"description": "Disable updates for napi packages"
},
{
"matchPackageNames": [
"@rspack/**",
"rspack_*",
"!rspack_sources",
"!rspack_resolver"
],
"groupName": "Rspack dependencies",
"groupSlug": "rspack-deps",
"enabled": true,
"semanticCommitType": "chore",
"postUpdateOptions": [
"cargoUpdateLockFile"
],
"description": "Group all rspack related packages for coordinated workspace updates"
},
{
"matchManagers": [
"cargo",
"npm"
],
"groupName": "Other dependencies",
"groupSlug": "other-deps",
"semanticCommitType": "chore",
"matchPackageNames": [
"!@napi-rs/**",
"!napi",
"!napi-**",
"!@rspack/**",
"!rspack_*",
"!rspack_sources",
"!rspack_resolver"
]
}
],
"schedule": [
"before 6am on monday"
],
"timezone": "Asia/Shanghai",
"labels": [
"dependencies"
],
"assignees": [],
"reviewers": [],
"prConcurrentLimit": 5,
"prHourlyLimit": 2,
"semanticCommits": "enabled",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"before 6am on monday"
]
}
}
Loading
Loading