Skip to content

Commit 1541f62

Browse files
authored
Strip "debuginfo" by default. (#160)
Fixes #149. Signed-off-by: Piotr Sikora <[email protected]>
1 parent fb7c953 commit 1541f62

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,32 +100,32 @@ jobs:
100100
101101
- name: Build (wasm32-unknown-unknown)
102102
env:
103-
RUSTFLAGS: -D warnings -C link-args=-S
103+
RUSTFLAGS: -D warnings
104104
run: cargo build --release --all-targets --target=wasm32-unknown-unknown
105105

106106
- name: Clippy (wasm32-unknown-unknown)
107107
env:
108-
RUSTFLAGS: -D warnings -C link-args=-S
108+
RUSTFLAGS: -D warnings
109109
run: cargo clippy --release --all-targets --target=wasm32-unknown-unknown
110110

111111
- name: Build (wasm32-wasi)
112112
env:
113-
RUSTFLAGS: -D warnings -C link-args=-S
113+
RUSTFLAGS: -D warnings
114114
run: cargo build --release --all-targets --target=wasm32-wasi
115115

116116
- name: Build (wasm32-wasi with wee-alloc)
117117
env:
118-
RUSTFLAGS: -D warnings -C link-args=-S
118+
RUSTFLAGS: -D warnings
119119
run: cargo build --release --all-targets --target=wasm32-wasi --features=wee-alloc
120120

121121
- name: Clippy (wasm32-wasi)
122122
env:
123-
RUSTFLAGS: -D warnings -C link-args=-S
123+
RUSTFLAGS: -D warnings
124124
run: cargo clippy --release --all-targets --target=wasm32-wasi
125125

126126
- name: Clippy (wasm32-wasi with wee-alloc)
127127
env:
128-
RUSTFLAGS: -D warnings -C link-args=-S
128+
RUSTFLAGS: -D warnings
129129
run: cargo clippy --release --all-targets --target=wasm32-wasi --features=wee-alloc
130130

131131
- name: Format (rustfmt)
@@ -155,32 +155,32 @@ jobs:
155155
156156
- name: Build (wasm32-unknown-unknown)
157157
env:
158-
RUSTFLAGS: -D warnings -C link-args=-S
158+
RUSTFLAGS: -D warnings
159159
run: cargo build --release --all-targets --target=wasm32-unknown-unknown
160160

161161
- name: Clippy (wasm32-unknown-unknown)
162162
env:
163-
RUSTFLAGS: -D warnings -C link-args=-S
163+
RUSTFLAGS: -D warnings
164164
run: cargo clippy --release --all-targets --target=wasm32-unknown-unknown
165165

166166
- name: Build (wasm32-wasi)
167167
env:
168-
RUSTFLAGS: -D warnings -C link-args=-S
168+
RUSTFLAGS: -D warnings
169169
run: cargo build --release --all-targets --target=wasm32-wasi
170170

171171
- name: Build (wasm32-wasi with wee-alloc)
172172
env:
173-
RUSTFLAGS: -D warnings -C link-args=-S
173+
RUSTFLAGS: -D warnings
174174
run: cargo build --release --all-targets --target=wasm32-wasi --features=wee-alloc
175175

176176
- name: Clippy (wasm32-wasi)
177177
env:
178-
RUSTFLAGS: -D warnings -C link-args=-S
178+
RUSTFLAGS: -D warnings
179179
run: cargo clippy --release --all-targets --target=wasm32-wasi
180180

181181
- name: Clippy (wasm32-wasi with wee-alloc)
182182
env:
183-
RUSTFLAGS: -D warnings -C link-args=-S
183+
RUSTFLAGS: -D warnings
184184
run: cargo clippy --release --all-targets --target=wasm32-wasi --features=wee-alloc
185185

186186
- name: Format (rustfmt)
@@ -214,22 +214,22 @@ jobs:
214214
215215
- name: Build (wasm32-wasi)
216216
env:
217-
RUSTFLAGS: -D warnings -C link-args=-S -Z wasi-exec-model=reactor
217+
RUSTFLAGS: -D warnings -Z wasi-exec-model=reactor
218218
run: cargo build --release --all-targets --target=wasm32-wasi
219219

220220
- name: Build (wasm32-wasi with wee-alloc)
221221
env:
222-
RUSTFLAGS: -D warnings -C link-args=-S -Z wasi-exec-model=reactor
222+
RUSTFLAGS: -D warnings -Z wasi-exec-model=reactor
223223
run: cargo build --release --all-targets --target=wasm32-wasi --features=wee-alloc
224224

225225
- name: Clippy (wasm32-wasi)
226226
env:
227-
RUSTFLAGS: -D warnings -C link-args=-S -Z wasi-exec-model=reactor
227+
RUSTFLAGS: -D warnings -Z wasi-exec-model=reactor
228228
run: cargo clippy --release --all-targets --target=wasm32-wasi
229229

230230
- name: Clippy (wasm32-wasi with wee-alloc)
231231
env:
232-
RUSTFLAGS: -D warnings -C link-args=-S -Z wasi-exec-model=reactor
232+
RUSTFLAGS: -D warnings -Z wasi-exec-model=reactor
233233
run: cargo clippy --release --all-targets --target=wasm32-wasi --features=wee-alloc
234234

235235
outdated:

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "proxy-wasm"
33
version = "0.2.0"
44
authors = ["Piotr Sikora <[email protected]>"]
5+
rust-version = "1.59"
56
description = "WebAssembly for Proxies"
67
readme = "README.md"
78
license = "Apache-2.0"
@@ -27,7 +28,9 @@ getrandom = "0.2"
2728
[profile.release]
2829
lto = true
2930
opt-level = 3
31+
codegen-units = 1
3032
panic = "abort"
33+
strip = "debuginfo"
3134

3235
[package.metadata.raze]
3336
package_aliases_dir = "bazel/cargo"

0 commit comments

Comments
 (0)