mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Renamed "forge" to "spark". Updated meta-references and future domain. (#40)
This commit is contained in:
committed by
GitHub
parent
ea9e4e3da9
commit
acb541cc4e
+1
-1
@@ -1,2 +1,2 @@
|
||||
target/
|
||||
forge-internal-rs/pkg/
|
||||
spark-internal-rs/pkg/
|
||||
|
||||
Generated
+10
-10
@@ -26,16 +26,6 @@ version = "0.2.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
|
||||
|
||||
[[package]]
|
||||
name = "forge-internal-rs"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"half",
|
||||
"js-sys",
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "half"
|
||||
version = "2.6.0"
|
||||
@@ -92,6 +82,16 @@ version = "1.0.20"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2"
|
||||
|
||||
[[package]]
|
||||
name = "spark-internal-rs"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"half",
|
||||
"js-sys",
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "2.0.100"
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"forge-internal-rs",
|
||||
"spark-internal-rs",
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
@@ -9,7 +9,7 @@ rust-version = "1.82"
|
||||
edition = "2021"
|
||||
license = "Proprietary"
|
||||
authors = ["World Labs Technologies"]
|
||||
repository = "https://github.com/forge-gfx/forge"
|
||||
repository = "https://github.com/sparkjs-dev/spark"
|
||||
|
||||
[workspace.dependencies]
|
||||
anyhow = "1.0.98"
|
||||
|
||||
@@ -20,5 +20,5 @@ if (-not (Get-Command wasm-pack -ErrorAction SilentlyContinue)) {
|
||||
}
|
||||
|
||||
# Change directory and build using wasm-pack
|
||||
Set-Location -Path "./forge-internal-rs"
|
||||
Set-Location -Path "./spark-internal-rs"
|
||||
wasm-pack build --target web
|
||||
|
||||
@@ -16,7 +16,7 @@ rustup target add wasm32-unknown-unknown
|
||||
# Make sure wasm-pack is installed
|
||||
cargo install wasm-pack
|
||||
|
||||
cd forge-internal-rs
|
||||
cd spark-internal-rs
|
||||
|
||||
# Build the project
|
||||
wasm-pack build --target web
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "forge-internal-rs"
|
||||
name = "spark-internal-rs"
|
||||
version = "0.1.0"
|
||||
rust-version.workspace = true
|
||||
edition.workspace = true
|
||||
@@ -1,6 +1,6 @@
|
||||
# forge-internal-rs
|
||||
# spark-internal-rs
|
||||
|
||||
Rust WebAssembly functions for forge-internal.
|
||||
Rust WebAssembly functions for spark-internal.
|
||||
|
||||
## Installing build tools
|
||||
|
||||
@@ -21,15 +21,15 @@ cargo install wasm-pack
|
||||
|
||||
## Building
|
||||
|
||||
Run the following script inside `forge-internal/rust`:
|
||||
Run the following script inside `spark-internal/rust`:
|
||||
```
|
||||
./build_rust_wasm.sh
|
||||
```
|
||||
|
||||
You can also build it manually by running these commands:
|
||||
```
|
||||
cd forge-internal-rs
|
||||
cd spark-internal-rs
|
||||
wasm-pack build --target web
|
||||
```
|
||||
|
||||
The generated files will be in the `pkg/` subdirectory, which is already symlinked in `forge-internal/package.json`.
|
||||
The generated files will be in the `pkg/` subdirectory, which is already symlinked in `spark-internal/package.json`.
|
||||
Reference in New Issue
Block a user