1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
Description: avoid not-in-Debian hashbrown feature nightly
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2024-08-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/crates/swc_allocator/Cargo.toml
+++ b/crates/swc_allocator/Cargo.toml
@@ -16,12 +16,6 @@
[features]
hashbrown = ["dep:hashbrown", "hashbrown/allocator-api2"]
-nightly = [
- "skip-warning",
- "allocator-api2/nightly",
- "bumpalo/allocator_api",
- "hashbrown/nightly",
-]
# This two features are actually useless
rkyv = []
serde = []
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -38,8 +38,6 @@
## but changes internal logics to perform differently. These flag should be turned on in combination with
## actual features. Refer build.rs for more details.
-nightly = ["swc_allocator/nightly"]
-
transform_common = ["dep:swc_transform_common"]
# swc_ecma_loader/cache*
--- a/.cargo/config.toml
+++ /dev/null
@@ -1,51 +0,0 @@
-[env]
-CARGO_WORKSPACE_DIR = { value = "", relative = true }
-
-[alias]
-bump = "run --package swc-releaser -- bump"
-codegen = "run --package generate-code --"
-releaser = "run --package swc-releaser --"
-xtask = "run --package xtask --"
-
-[build]
-
-rustdocflags = ["--cfg", "docsrs"]
-rustflags = ["-Zshare-generics=y"]
-
-[target.x86_64-unknown-linux-gnu]
-rustflags = [
- "-C",
- "target-feature=+sse2",
- "-Zshare-generics=y",
- "-C",
- "link-args=-Wl,-z,nodelete",
-]
-
-[target.aarch64-unknown-linux-gnu]
-linker = "aarch64-linux-gnu-gcc"
-rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
-
-[target.aarch64-unknown-linux-musl]
-linker = "aarch64-linux-musl-gcc"
-rustflags = [
- "-C",
- "target-feature=-crt-static",
- "-C",
- "link-arg=-lgcc",
- "-Zshare-generics=y",
-]
-
-[target.armv7-unknown-linux-gnueabihf]
-linker = "arm-linux-gnueabihf-gcc"
-rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
-
-[target.x86_64-pc-windows-msvc]
-linker = "rust-lld"
-rustflags = ["-C", "target-feature=+crt-static", "-Zshare-generics=y"]
-
-
-[target.aarch64-pc-windows-msvc]
-linker = "rust-lld"
-
-[target.wasm32-unknown-unknown]
-rustflags = ["-Zshare-generics=y", "--cfg", 'getrandom_backend="wasm_js"']
--- a/crates/swc_ts_fast_strip/Cargo.toml
+++ b/crates/swc_ts_fast_strip/Cargo.toml
@@ -12,7 +12,6 @@
[features]
default = []
-nightly = []
[dependencies]
anyhow = { workspace = true }
|