Skip to content

Commit c7ca83a

Browse files
authored
Merge pull request #2 from paritytech/upstream-merge
Upstream merge
2 parents 4cb84fc + 90a7d0d commit c7ca83a

File tree

893 files changed

+57663
-34842
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

893 files changed

+57663
-34842
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Use LF-style line endings for all text files.
2+
* text=auto eol=lf
3+
4+
# Older git versions try to fix line endings on images, this prevents it.
5+
*.png binary
6+
*.ico binary
7+
*.wasm binary

.github/ISSUE_TEMPLATE/blank-issue.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
---
22
name: Blank Issue
33
about: Create a blank issue.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
48
---
9+
10+

.github/ISSUE_TEMPLATE/clif-bug-report.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
2-
name: "Cranelift Bug report"
3-
about: "Report a bug or a crash in Cranelift."
4-
labels: 'bug'
2+
name: Cranelift Bug report
3+
about: Report a bug or a crash in Cranelift.
4+
title: 'Cranelift: '
5+
labels: bug, cranelift
6+
assignees: ''
7+
58
---
69

710
Thanks for opening a bug report! Please answer the questions below

.github/ISSUE_TEMPLATE/improvement.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
2-
name: "Improvement"
3-
about: "A feature request or code improvement."
2+
name: Improvement
3+
about: A feature request or code improvement.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
48
---
59

610
<!-- Please try to describe precisely what you would like to do in
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Wasmtime bug report
3+
about: Report a bug or a crash in Wasmtime
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
Thanks for opening a bug report! Please answer the questions below
11+
if they're relevant and delete this text before submitting.
12+
13+
- What are the steps to reproduce the issue?
14+
- What do you expect to happen? What does actually happen? Does it panic, and
15+
if so, with which assertion?
16+
- Which Wasmtime version / commit hash / branch are you using?
17+
- If relevant, can you include some extra information about your environment?
18+
(Rust version, operating system, architecture...)

.github/actions/define-dwarfdump-env/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# define-llvm-env
2+
3+
Defines `DWARFDUMP` and `LLDB` path executable.

.github/actions/define-dwarfdump-env/main.js renamed to .github/actions/define-llvm-env/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
// On OSX pointing to brew's LLVM location.
44
if (process.platform == 'darwin') {
55
console.log("::set-env name=DWARFDUMP::/usr/local/opt/llvm/bin/llvm-dwarfdump");
6+
console.log("::set-env name=LLDB::/usr/local/opt/llvm/bin/lldb");
67
}
78

89
// On Linux pointing to specific version
910
if (process.platform == 'linux') {
1011
console.log("::set-env name=DWARFDUMP::/usr/bin/llvm-dwarfdump-9");
12+
console.log("::set-env name=LLDB::/usr/bin/lldb-9");
1113
}

.github/actions/install-rust/main.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,17 @@ if (process.platform === 'darwin') {
1111
child_process.execFileSync('rustup', ['set', 'profile', 'minimal']);
1212
child_process.execFileSync('rustup', ['update', toolchain, '--no-self-update']);
1313
child_process.execFileSync('rustup', ['default', toolchain]);
14+
15+
// Deny warnings on CI to keep our code warning-free as it lands in-tree. Don't
16+
// do this on nightly though since there's a fair amount of warning churn there.
17+
if (!toolchain.startsWith('nightly')) {
18+
console.log(`::set-env name=RUSTFLAGS::-D warnings`);
19+
}
20+
21+
// Save disk space by avoiding incremental compilation, and also we don't use
22+
// any caching so incremental wouldn't help anyway.
23+
console.log(`::set-env name=CARGO_INCREMENTAL::0`);
24+
25+
// Turn down debuginfo from 2 to 1 to help save disk space
26+
console.log(`::set-env name=CARGO_PROFILE_DEV_DEBUG::1`);
27+
console.log(`::set-env name=CARGO_PROFILE_TEST_DEBUG::1`);

.github/labeler.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This file configures which paths automatically get which label on new pull
2+
# requests.
3+
#
4+
# It generally has the syntax:
5+
#
6+
# <label 0>:
7+
# - <glob-path 0>
8+
# - ...
9+
# - <glob-path n>
10+
# ...
11+
# <label n>:
12+
# - <glob-path 0>
13+
# - ...
14+
# - <glob-path n>
15+
#
16+
# See https://github.com/actions/labeler for details.
17+
#
18+
# Note that we keep the labels in alphabetical order below.
19+
20+
"cranelift":
21+
- "cranelift/**"
22+
23+
"cranelift:docs":
24+
- "cranelift/docs/**"
25+
26+
"cranelift:meta":
27+
- "cranelift/codegen/meta/**"
28+
29+
"cranelift:module":
30+
- "cranelift/faerie/**"
31+
- "cranelift/module/**"
32+
- "cranelift/object/**"
33+
- "cranelift/simplejit/**"
34+
35+
"cranelift:wasm":
36+
- "cranelift/wasm/**"
37+
- "cranelift/wasmtests/**"
38+
39+
"cranelift:area:aarch64":
40+
- "cranelift/codegen/src/machinst/*"
41+
- "cranelift/codegen/src/isa/aarch64/*"
42+
43+
"fuzzing":
44+
- "crates/fuzzing/**"
45+
- "fuzz/**"
46+
47+
"lightbeam":
48+
- "crates/lightbeam/**"
49+
50+
"wasi":
51+
- "crates/wasi/**"
52+
- "crates/wasi-common/**"
53+
- "crates/wiggle/**"
54+
55+
"wasmtime:api":
56+
- "crates/api/**"
57+
58+
"wasmtime:c-api":
59+
- "crates/c-api/**"
60+
61+
"wasmtime:docs":
62+
- "*.md"
63+
- "docs/**"

.github/subscribe-to-label.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"bnjbvr": ["cranelift"],
3+
"fitzgen": ["fuzzing"],
4+
"peterhuene": ["wasmtime:api", "wasmtime:c-api"],
5+
"kubkon": ["wasi"]
6+
}

.github/workflows/labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
schedule:
4+
# Run every 5 minutes.
5+
- cron: '*/5 * * * *'
6+
7+
jobs:
8+
triage:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: bytecodealliance/labeler@schedule-fork
12+
with:
13+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)