Skip to content

Commit 83935ac

Browse files
captbaritonemeta-codesync[bot]
authored andcommitted
Add Buck target for relay-compiler-playground WASM build
Reviewed By: evanyeung Differential Revision: D94959470 fbshipit-source-id: 275cff9bfbe83edaa876a14f5bb749e6ef0e22a5
1 parent 95f6b36 commit 83935ac

1 file changed

Lines changed: 19 additions & 27 deletions

File tree

  • compiler/crates/relay-compiler-playground
Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,44 @@
1+
# @generated by autocargo from //relay/oss/crates/relay-compiler-playground:relay-compiler-playground
2+
13
[package]
24
name = "relay-compiler-playground"
35
version = "0.0.3"
46
authors = ["Facebook"]
5-
edition = "2021"
7+
edition = "2024"
8+
repository = "https://github.com/facebook/relay"
69
license = "MIT"
710

11+
[package.metadata]
12+
13+
[package.metadata."wasm-pack.profile.release"]
14+
wasm-opt = ["-Oz", "--enable-mutable-globals"]
15+
816
[lib]
917
crate-type = ["cdylib", "rlib"]
1018

11-
[features]
12-
default = ["console_error_panic_hook"]
13-
1419
[dependencies]
15-
wasm-bindgen = "0.2.63"
20+
common = { path = "../common" }
21+
console_error_panic_hook = { version = "0.1.7", optional = true }
1622
graphql-ir = { path = "../graphql-ir" }
1723
graphql-syntax = { path = "../graphql-syntax" }
1824
graphql-text-printer = { path = "../graphql-text-printer" }
25+
intern = { path = "../intern" }
1926
relay-codegen = { path = "../relay-codegen" }
2027
relay-config = { path = "../relay-config" }
21-
relay-typegen = { path = "../relay-typegen" }
2228
relay-schema = { path = "../relay-schema" }
2329
relay-transforms = { path = "../relay-transforms" }
24-
common = { path = "../common" }
25-
intern = { path = "../intern" }
26-
fnv = "1.0"
27-
serde = { version = "1.0.126", features = ["derive", "rc"] }
28-
serde_json = { version = "1.0", features = ["float_roundtrip"] }
30+
relay-typegen = { path = "../relay-typegen" }
2931
schema = { path = "../schema" }
30-
31-
# The `console_error_panic_hook` crate provides better debugging of panics by
32-
# logging them with `console.error`. This is great for development, but requires
33-
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
34-
# code size when deploying.
35-
console_error_panic_hook = { version = "0.1.6", optional = true }
36-
37-
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
38-
# compared to the default allocator's ~10K. It is slower than the default
39-
# allocator, however.
40-
#
41-
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
32+
serde = { version = "1.0.219", features = ["derive", "rc"] }
33+
serde_json = { version = "1.0.140", features = ["alloc", "float_roundtrip", "raw_value", "unbounded_depth"] }
34+
wasm-bindgen = "0.2.100"
4235
wee_alloc = { version = "0.4.5", optional = true }
4336

4437
[dev-dependencies]
4538
wasm-bindgen-test = "0.3.13"
4639

40+
[features]
41+
default = ["console_error_panic_hook"]
42+
4743
[profile.release]
48-
# Tell `rustc` to optimize for small code size.
4944
opt-level = "s"
50-
51-
[package.metadata.wasm-pack.profile.release]
52-
wasm-opt = ["-Oz", "--enable-mutable-globals"]

0 commit comments

Comments
 (0)