Skip to content

Commit ef09f31

Browse files
authored
Rename c-dependencies to runtime (#514)
1 parent 094fdb9 commit ef09f31

File tree

117 files changed

+43
-42
lines changed

Some content is hidden

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

117 files changed

+43
-42
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ updates:
1111
interval: "daily"
1212

1313
- package-ecosystem: "cargo"
14-
directory: "/c-dependencies/js-compute-runtime/rust-url"
14+
directory: "/runtime/js-compute-runtime/rust-url"
1515
schedule:
1616
interval: "daily"
1717

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- uses: ./.github/actions/cache-crates
4343
with:
44-
lockfiles: 'c-dependencies/js-compute-runtime/**/Cargo.lock'
44+
lockfiles: 'runtime/js-compute-runtime/**/Cargo.lock'
4545

4646
- name: Restore wasm-tools from cache
4747
uses: actions/cache@v3
@@ -59,26 +59,26 @@ jobs:
5959
6060
- uses: ./.github/actions/install-rust
6161
with:
62-
path: c-dependencies
62+
path: runtime
6363

6464
- name: Cache SpiderMonkey object files
6565
uses: actions/cache@v3
6666
id: sm-cache
6767
with:
6868
path: |
69-
c-dependencies/spidermonkey/${{ matrix.profile }}
69+
runtime/spidermonkey/${{ matrix.profile }}
7070
key: cache-${{ hashFiles(
71-
'c-dependencies/spidermonkey/build-engine.sh',
72-
'c-dependencies/spidermonkey/gecko-revision',
73-
'c-dependencies/spidermonkey/object-files.list',
74-
'c-dependencies/rust-toolchain.toml'
71+
'runtime/spidermonkey/build-engine.sh',
72+
'runtime/spidermonkey/gecko-revision',
73+
'runtime/spidermonkey/object-files.list',
74+
'runtime/rust-toolchain.toml'
7575
) }}-${{ matrix.profile }}
7676
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
7777

7878
- name: "Build SpiderMonkey"
7979
if: steps.sm-cache.outputs.cache-hit != 'true'
8080
run: |
81-
cd c-dependencies/spidermonkey/
81+
cd runtime/spidermonkey/
8282
sudo apt-get update -y
8383
bash ./build-engine.sh ${{ matrix.profile }}
8484
@@ -100,8 +100,8 @@ jobs:
100100
- name: Cache built Rust dependencies
101101
uses: actions/cache@v3
102102
with:
103-
path: c-dependencies/js-compute-runtime/rusturl
104-
key: engine-cargo-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('c-dependencies/rust-toolchain.toml', 'c-dependencies/js-compute-runtime/**/Cargo.lock') }}
103+
path: runtime/js-compute-runtime/rusturl
104+
key: engine-cargo-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('runtime/rust-toolchain.toml', 'runtime/js-compute-runtime/**/Cargo.lock') }}
105105
# We trust cargo to only reuse valid parts of the cache when dependencies change.
106106
restore-keys: engine-cargo-${{ runner.os }}-${{ runner.arch }}-
107107
# Out of an abundance of caution, ensure that tagged releases rebuild all
@@ -366,7 +366,7 @@ jobs:
366366
name: engine-release
367367
- name: Locate component resources
368368
run: |
369-
cp c-dependencies/js-compute-runtime/fastly.wit .
369+
cp runtime/js-compute-runtime/fastly.wit .
370370
- run: yarn
371371
shell: bash
372372
- run: npm test

.github/workflows/release-please.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ jobs:
8181

8282
- uses: ./.github/actions/cache-crates
8383
with:
84-
lockfiles: "c-dependencies/js-compute-runtime/**/Cargo.lock"
84+
lockfiles: "runtime/js-compute-runtime/**/Cargo.lock"
8585

8686
- uses: ./.github/actions/install-rust
8787
with:
88-
path: c-dependencies
88+
path: runtime
8989

9090
- name: Restore wasm-tools from cache
9191
uses: actions/cache@v3
@@ -106,18 +106,18 @@ jobs:
106106
id: sm-cache
107107
with:
108108
path: |
109-
c-dependencies/spidermonkey/release
109+
runtime/spidermonkey/release
110110
key: cache-${{ hashFiles(
111-
'c-dependencies/spidermonkey/build-engine.sh',
112-
'c-dependencies/spidermonkey/gecko-revision',
113-
'c-dependencies/spidermonkey/object-files.list',
114-
'c-dependencies/rust-toolchain.toml'
111+
'runtime/spidermonkey/build-engine.sh',
112+
'runtime/spidermonkey/gecko-revision',
113+
'runtime/spidermonkey/object-files.list',
114+
'runtime/rust-toolchain.toml'
115115
) }}-release
116116

117117
- name: "Build SpiderMonkey"
118118
if: ${{ steps.sm-cache.outputs.cache-hit != 'true' }}
119119
run: |
120-
cd c-dependencies/spidermonkey/
120+
cd runtime/spidermonkey/
121121
bash ./build-engine.sh release
122122
123123
- name: "Install wasi-sdk-19 (linux)"
@@ -138,8 +138,8 @@ jobs:
138138
- name: Cache built Rust dependencies
139139
uses: actions/cache@v3
140140
with:
141-
path: c-dependencies/js-compute-runtime/rusturl
142-
key: engine-cargo-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('c-dependencies/rust-toolchain.toml', 'c-dependencies/js-compute-runtime/**/Cargo.lock') }}
141+
path: runtime/js-compute-runtime/rusturl
142+
key: engine-cargo-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('runtime/rust-toolchain.toml', 'runtime/js-compute-runtime/**/Cargo.lock') }}
143143
# We trust cargo to only reuse valid parts of the cache when dependencies change.
144144
restore-keys: engine-cargo-${{ runner.os }}-${{ runner.arch }}-
145145

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ node_modules/
1313
# compiler_flags
1414
/js-compute-runtime.wasm
1515
/js-compute-runtime-component.wasm
16-
/c-dependencies/js-compute-runtime/obj
16+
/runtime/js-compute-runtime/obj
1717
tests/wpt-harness/wpt-test-runner.js
1818
/fastly.wit
1919
wpt-runtime.wasm
2020
docs-app/bin/main.wasm
2121
docs-app/pkg/*.tar.gz
22-
c-dependencies/js-compute-runtime/fastly-world/fastly_world_component_type.o
22+
runtime/js-compute-runtime/fastly-world/fastly_world_component_type.o
2323

2424
*.a
2525
yarn-error.log

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[submodule "c-dependencies/spidermonkey"]
2-
path = c-dependencies/spidermonkey
1+
[submodule "runtime/spidermonkey"]
2+
path = runtime/spidermonkey
33
url = https://github.com/fastly/spidermonkey-wasi-embedding.git
44
shallow = true
55
[submodule "tests/wpt-harness/wpt"]

.vscode/c_cpp_properties.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
{
44
"name": "sm-wasi",
55
"includePath": [
6-
"${workspaceFolder}/c-dependencies/spidermonkey/debug/include",
6+
"${workspaceFolder}/runtime/spidermonkey/debug/include",
77
"/opt/wasi-sdk/share/wasi-sysroot/include/",
8-
"${workspaceFolder}/c-dependencies/js-compute-runtime",
9-
"${workspaceFolder}/c-dependencies/js-compute-runtime/build/openssl-3.0.7/include"
8+
"${workspaceFolder}/runtime/js-compute-runtime",
9+
"${workspaceFolder}/runtime/js-compute-runtime/build/openssl-3.0.7/include"
1010
],
1111
"defines": [
1212
"__wasi__"
@@ -21,8 +21,8 @@
2121
"forcedInclude": [
2222
"${workspaceFolder}/.vscode/vscode-preinclude.h"
2323
],
24-
"compileCommands": "${workspaceFolder}/c-dependencies/js-compute-runtime/compile_commands.json"
24+
"compileCommands": "${workspaceFolder}/runtime/js-compute-runtime/compile_commands.json"
2525
}
2626
],
2727
"version": 4
28-
}
28+
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions

ci/clang-format.ignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
c-dependencies/js-compute-runtime/third_party/wizer.h
2-
c-dependencies/js-compute-runtime/rust-url/rust-url.h
1+
runtime/js-compute-runtime/third_party/wizer.h
2+
runtime/js-compute-runtime/rust-url/rust-url.h
3+
runtime/js-compute-runtime/rust-encoding/rust-encoding.h

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"test": "npm run test:types && npm run test:cli",
3232
"test:cli": "brittle --bail integration-tests/cli/**.test.js",
3333
"test:types": "tsd",
34-
"build": "make -j8 -C c-dependencies/js-compute-runtime && cp c-dependencies/js-compute-runtime/*.wasm c-dependencies/js-compute-runtime/fastly.wit .",
35-
"build:debug": "DEBUG=true make -j8 -C c-dependencies/js-compute-runtime && cp c-dependencies/js-compute-runtime/*.wasm c-dependencies/js-compute-runtime/fastly.wit .",
34+
"build": "make -j8 -C runtime/js-compute-runtime && cp runtime/js-compute-runtime/*.wasm runtime/js-compute-runtime/fastly.wit .",
35+
"build:debug": "DEBUG=true make -j8 -C runtime/js-compute-runtime && cp runtime/js-compute-runtime/*.wasm runtime/js-compute-runtime/fastly.wit .",
3636
"check-changelog": "cae-release-notes-format-checker CHANGELOG.md"
3737
},
3838
"devDependencies": {

0 commit comments

Comments
 (0)