Skip to content

Commit 5b4f182

Browse files
Merge branch 'master' into improve-save-document
2 parents 14f7b0f + 5ed45ea commit 5b4f182

File tree

119 files changed

+1951
-17278
lines changed

Some content is hidden

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

119 files changed

+1951
-17278
lines changed

.github/workflows/website.yml

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ jobs:
6363
mkdir artifacts
6464
mv hierarchical_message_system_tree.txt artifacts/hierarchical_message_system_tree.txt
6565
66-
- name: 🚚 Move `artifacts` contents to `website/other/editor-structure`
66+
- name: 🚚 Move `artifacts` contents to the project root
6767
run: |
68-
mv artifacts/* website/other/editor-structure
68+
mv artifacts/* .
6969
7070
- name: 🔧 Build auto-generated code docs artifacts into HTML
7171
run: |
72-
cd website/other/editor-structure
73-
node generate.js hierarchical_message_system_tree.txt replacement.html
72+
cd website
73+
npm run generate-editor-structure
7474
7575
- name: 🌐 Build Graphite website with Zola
7676
env:
@@ -80,38 +80,6 @@ jobs:
8080
npm run install-fonts
8181
zola --config config.toml build --minify
8282
83-
- name: 💿 Restore cache of `website/other/dist` directory, if available and `website/other` didn't change
84-
if: steps.changes.outputs.website-other != 'true'
85-
id: cache-website-other-dist
86-
uses: actions/cache/restore@v3
87-
with:
88-
path: website/other/dist
89-
key: website-other-dist-${{ runner.os }}
90-
91-
- name: 🟢 Set up Node only if we are going to build in the next step
92-
if: steps.cache-website-other-dist.outputs.cache-hit != 'true'
93-
uses: actions/setup-node@v4
94-
with:
95-
node-version: "latest"
96-
97-
- name: 📁 Build `website/other` directory only if changed or not cached
98-
if: steps.cache-website-other-dist.outputs.cache-hit != 'true'
99-
id: build-website-other
100-
run: |
101-
sh website/other/build.sh
102-
103-
- name: 💾 Save cache of `website/other/dist` directory if it was built above
104-
if: steps.cache-website-other-dist.outputs.cache-hit != 'true'
105-
uses: actions/cache/save@v3
106-
with:
107-
path: website/other/dist
108-
key: ${{ steps.cache-website-other-dist.outputs.cache-primary-key }}
109-
110-
- name: 🚚 Move `website/other/dist` contents to `website/public`
111-
run: |
112-
mkdir -p website/public
113-
mv website/other/dist/* website/public
114-
11583
- name: 📤 Publish to Cloudflare Pages
11684
id: cloudflare
11785
uses: cloudflare/pages-action@1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ flamegraph.svg
88
.idea/
99
.direnv
1010
hierarchical_message_system_tree.txt
11+
hierarchical_message_system_tree.html

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"rust-analyzer.cargo.allTargets": false,
3636
// ESLint config
3737
"eslint.format.enable": true,
38-
"eslint.workingDirectories": ["./frontend", "./website/other/bezier-rs-demos", "./website"],
38+
"eslint.workingDirectories": ["./frontend", "./website"],
3939
"eslint.validate": ["javascript", "typescript", "svelte"],
4040
// Svelte config
4141
"svelte.plugin.svelte.compilerWarnings": {

Cargo.lock

Lines changed: 3 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ members = [
2020
"node-graph/preprocessor",
2121
"libraries/dyn-any",
2222
"libraries/path-bool",
23-
"libraries/bezier-rs",
2423
"libraries/math-parser",
25-
"website/other/bezier-rs-demos/wasm",
2624
]
2725
default-members = [
2826
"editor",
@@ -44,9 +42,14 @@ resolver = "2"
4442

4543
[workspace.dependencies]
4644
# Local dependencies
47-
bezier-rs = { path = "libraries/bezier-rs", features = ["dyn-any", "serde"] }
48-
dyn-any = { path = "libraries/dyn-any", features = ["derive", "glam", "reqwest", "log-bad-types", "rc"] }
49-
preprocessor = { path = "node-graph/preprocessor"}
45+
dyn-any = { path = "libraries/dyn-any", features = [
46+
"derive",
47+
"glam",
48+
"reqwest",
49+
"log-bad-types",
50+
"rc",
51+
] }
52+
preprocessor = { path = "node-graph/preprocessor" }
5053
math-parser = { path = "libraries/math-parser" }
5154
path-bool = { path = "libraries/path-bool" }
5255
graphene-application-io = { path = "node-graph/gapplication-io" }
@@ -80,9 +83,8 @@ convert_case = "0.7"
8083
derivative = "2.2"
8184
thiserror = "2"
8285
anyhow = "1.0"
83-
proc-macro2 = { version = "1", features = [ "span-locations" ] }
86+
proc-macro2 = { version = "1", features = ["span-locations"] }
8487
quote = "1.0"
85-
axum = "0.8"
8688
chrono = "0.4"
8789
ron = "0.8"
8890
fastnoise-lite = "1.1"
@@ -122,9 +124,17 @@ resvg = "0.44"
122124
usvg = "0.44"
123125
rand = { version = "0.9", default-features = false, features = ["std_rng"] }
124126
rand_chacha = "0.9"
125-
glam = { version = "0.29", default-features = false, features = ["serde", "scalar-math", "debug-glam-assert"] }
127+
glam = { version = "0.29", default-features = false, features = [
128+
"serde",
129+
"scalar-math",
130+
"debug-glam-assert",
131+
] }
126132
base64 = "0.22"
127-
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp"] }
133+
image = { version = "0.25", default-features = false, features = [
134+
"png",
135+
"jpeg",
136+
"bmp",
137+
] }
128138
parley = "0.5.0"
129139
skrifa = "0.32.0"
130140
pretty_assertions = "1.4.1"

editor/Cargo.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ license = "Apache-2.0"
1212

1313
[features]
1414
default = ["wasm"]
15-
wasm = ["wasm-bindgen", "graphene-std/wasm", "wasm-bindgen-futures"]
15+
wasm = ["wasm-bindgen", "graphene-std/wasm"]
1616
gpu = ["interpreted-executor/gpu", "wgpu-executor"]
1717
resvg = ["graphene-std/resvg"]
1818
vello = ["graphene-std/vello", "resvg"]
19-
ron = ["dep:ron"]
19+
ron = []
2020

2121
[dependencies]
2222
# Local dependencies
2323
graphite-proc-macros = { workspace = true }
2424
graph-craft = { workspace = true }
2525
interpreted-executor = { workspace = true }
26-
graphene-std = { workspace = true }
26+
graphene-std = { workspace = true } # NOTE: `graphene-core` should not be added here because `graphene-std` re-exports its contents
2727
preprocessor = { workspace = true }
2828

2929
# Workspace dependencies
@@ -33,7 +33,6 @@ bitflags = { workspace = true }
3333
thiserror = { workspace = true }
3434
serde = { workspace = true }
3535
serde_json = { workspace = true }
36-
bezier-rs = { workspace = true }
3736
kurbo = { workspace = true }
3837
futures = { workspace = true }
3938
glam = { workspace = true }
@@ -44,9 +43,7 @@ num_enum = { workspace = true }
4443
usvg = { workspace = true }
4544
once_cell = { workspace = true }
4645
web-sys = { workspace = true }
47-
bytemuck = { workspace = true }
4846
vello = { workspace = true }
49-
tracing = { workspace = true }
5047
base64 = { workspace = true }
5148

5249
# Required dependencies
@@ -57,8 +54,6 @@ wgpu-executor = { workspace = true, optional = true }
5754

5855
# Optional workspace dependencies
5956
wasm-bindgen = { workspace = true, optional = true }
60-
wasm-bindgen-futures = { workspace = true, optional = true }
61-
ron = { workspace = true, optional = true }
6257

6358
[dev-dependencies]
6459
# Workspace dependencies

0 commit comments

Comments
 (0)