|
| 1 | +# @generated by autocargo from //relay/oss/crates/relay-compiler-playground:relay-compiler-playground |
| 2 | + |
1 | 3 | [package] |
2 | 4 | name = "relay-compiler-playground" |
3 | 5 | version = "0.0.3" |
4 | 6 | authors = ["Facebook"] |
5 | | -edition = "2021" |
| 7 | +edition = "2024" |
| 8 | +repository = "https://github.com/facebook/relay" |
6 | 9 | license = "MIT" |
7 | 10 |
|
| 11 | +[package.metadata] |
| 12 | + |
| 13 | +[package.metadata."wasm-pack.profile.release"] |
| 14 | +wasm-opt = ["-Oz", "--enable-mutable-globals"] |
| 15 | + |
8 | 16 | [lib] |
9 | 17 | crate-type = ["cdylib", "rlib"] |
10 | 18 |
|
11 | | -[features] |
12 | | -default = ["console_error_panic_hook"] |
13 | | - |
14 | 19 | [dependencies] |
15 | | -wasm-bindgen = "0.2.63" |
| 20 | +common = { path = "../common" } |
| 21 | +console_error_panic_hook = { version = "0.1.7", optional = true } |
16 | 22 | graphql-ir = { path = "../graphql-ir" } |
17 | 23 | graphql-syntax = { path = "../graphql-syntax" } |
18 | 24 | graphql-text-printer = { path = "../graphql-text-printer" } |
| 25 | +intern = { path = "../intern" } |
19 | 26 | relay-codegen = { path = "../relay-codegen" } |
20 | 27 | relay-config = { path = "../relay-config" } |
21 | | -relay-typegen = { path = "../relay-typegen" } |
22 | 28 | relay-schema = { path = "../relay-schema" } |
23 | 29 | 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" } |
29 | 31 | 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" |
42 | 35 | wee_alloc = { version = "0.4.5", optional = true } |
43 | 36 |
|
44 | 37 | [dev-dependencies] |
45 | 38 | wasm-bindgen-test = "0.3.13" |
46 | 39 |
|
| 40 | +[features] |
| 41 | +default = ["console_error_panic_hook"] |
| 42 | + |
47 | 43 | [profile.release] |
48 | | -# Tell `rustc` to optimize for small code size. |
49 | 44 | opt-level = "s" |
50 | | - |
51 | | -[package.metadata.wasm-pack.profile.release] |
52 | | -wasm-opt = ["-Oz", "--enable-mutable-globals"] |
0 commit comments