From c44e9d22e343a9e361bd7948632aac247064adf6 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 4 Aug 2022 08:52:24 +0200 Subject: [PATCH] Integrate dyn-any into the main graphite repo --- Cargo.lock | 1242 +++++++++++++++++++++ Cargo.toml | 8 +- libraries/dyn-any/Cargo.toml | 20 + libraries/dyn-any/LICENSE-APACHE | 201 ++++ libraries/dyn-any/LICENSE-MIT | 17 + libraries/dyn-any/README.md | 4 + libraries/dyn-any/derive/Cargo.toml | 22 + libraries/dyn-any/derive/src/lib.rs | 78 ++ libraries/dyn-any/src/lib.rs | 131 +++ node-graph/.gitignore | 2 - node-graph/.gitmodules | 3 - node-graph/Cargo.lock | 1579 --------------------------- node-graph/Cargo.toml | 8 - node-graph/README.md | 2 - node-graph/dyn-any | 1 - node-graph/gcore/Cargo.toml | 4 +- node-graph/gstd/Cargo.toml | 2 +- 17 files changed, 1724 insertions(+), 1600 deletions(-) create mode 100644 libraries/dyn-any/Cargo.toml create mode 100644 libraries/dyn-any/LICENSE-APACHE create mode 100644 libraries/dyn-any/LICENSE-MIT create mode 100644 libraries/dyn-any/README.md create mode 100644 libraries/dyn-any/derive/Cargo.toml create mode 100644 libraries/dyn-any/derive/src/lib.rs create mode 100644 libraries/dyn-any/src/lib.rs delete mode 100644 node-graph/.gitignore delete mode 100644 node-graph/.gitmodules delete mode 100644 node-graph/Cargo.lock delete mode 100644 node-graph/Cargo.toml delete mode 100644 node-graph/README.md delete mode 160000 node-graph/dyn-any diff --git a/Cargo.lock b/Cargo.lock index 66327c37b..8b7fe34f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,12 +11,38 @@ dependencies = [ "memchr", ] +[[package]] +name = "always-assert" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbf688625d06217d5b1bb0ea9d9c44a1635fd0ee3534466388d18203174f4d11" +dependencies = [ + "log", +] + +[[package]] +name = "anymap" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33954243bd79057c2de7338850b85983a44588021f8a5fee574a8888c6de4344" + [[package]] name = "arrayvec" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +[[package]] +name = "async-trait" +version = "0.1.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed6aa3524a2dfcf9fe180c51eae2b58738348d819517ceadf95789c51fff7600" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "atty" version = "0.2.14" @@ -68,6 +94,10 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "borrow_stack" +version = "0.1.0" + [[package]] name = "bumpalo" version = "3.9.1" @@ -86,6 +116,58 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "chalk-derive" +version = "0.81.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb2ca8aa9da8210effebb51e49b4bd8bc25c06df38220d58a60df35a08a84af" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "chalk-ir" +version = "0.81.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e128fa3652ef2cdd5a7e64e0cc5a89f40170f80dd9f6357ba4a82cf027abd0d5" +dependencies = [ + "bitflags", + "chalk-derive", + "lazy_static", +] + +[[package]] +name = "chalk-recursive" +version = "0.81.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fcba1e8b66a291430b6aa18368a95da0577d7f126653baae71c0cb0f3d093" +dependencies = [ + "chalk-derive", + "chalk-ir", + "chalk-solve", + "rustc-hash", + "tracing", +] + +[[package]] +name = "chalk-solve" +version = "0.81.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43151ddc627d8dfbde6af44405cb8e98a15828f66a3d4a3da6a1fad6c5dc4687" +dependencies = [ + "chalk-derive", + "chalk-ir", + "ena", + "indexmap", + "itertools", + "petgraph", + "rustc-hash", + "tracing", +] + [[package]] name = "console_error_panic_hook" version = "0.1.7" @@ -96,6 +178,80 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "countme" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" +dependencies = [ + "dashmap", + "once_cell", + "rustc-hash", +] + +[[package]] +name = "cov-mark" +version = "2.0.0-pre.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d48d8f76bd9331f19fe2aaf3821a9f9fb32c3963e1e3d6ce82a8c09cef7444a" + +[[package]] +name = "crossbeam-channel" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +dependencies = [ + "cfg-if", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" +dependencies = [ + "cfg-if", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1" +dependencies = [ + "autocfg", + "cfg-if", + "crossbeam-utils", + "memoffset", + "once_cell", + "scopeguard", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc" +dependencies = [ + "cfg-if", + "once_cell", +] + +[[package]] +name = "dashmap" +version = "5.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3495912c9c1ccf2e18976439f4443f3fee0fd61f424ff99fde6a66b15ecb448f" +dependencies = [ + "cfg-if", + "hashbrown", + "lock_api", + "parking_lot_core 0.9.3", +] + [[package]] name = "derivative" version = "2.2.0" @@ -107,6 +263,57 @@ dependencies = [ "syn", ] +[[package]] +name = "dissimilar" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c97b9233581d84b8e1e689cdd3a47b6f69770084fc246e86a7f78b0d9c1d4a5" + +[[package]] +name = "dot" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a74b6c4d4a1cff5f454164363c16b72fa12463ca6b31f4b5f2035a65fa3d5906" + +[[package]] +name = "drop_bomb" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bda8e21c04aca2ae33ffc2fd8c23134f3cac46db123ba97bd9d3f3b8a4a85e1" + +[[package]] +name = "dyn-any" +version = "0.2.0" +dependencies = [ + "dyn-any-derive", +] + +[[package]] +name = "dyn-any-derive" +version = "0.2.0" +dependencies = [ + "dyn-any", + "proc-macro2", + "proc_macro_roids", + "quote", + "syn", +] + +[[package]] +name = "either" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be" + +[[package]] +name = "ena" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3" +dependencies = [ + "log", +] + [[package]] name = "env_logger" version = "0.8.4" @@ -120,21 +327,83 @@ dependencies = [ "termcolor", ] +[[package]] +name = "fixedbitset" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" + [[package]] name = "fnv" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "form_urlencoded" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +dependencies = [ + "matches", + "percent-encoding", +] + +[[package]] +name = "fst" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ab85b9b05e3978cc9a9cf8fea7f01b494e1a09ed3037e16ba39edc7a29eb61a" + [[package]] name = "glam" version = "0.17.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e01732b97afd8508eee3333a541b9f7610f454bb818669e66e90f5f57c93a776" dependencies = [ + "num-traits", "serde", ] +[[package]] +name = "graph-proc-macros" +version = "0.1.0" +dependencies = [ + "graphene-core", + "proc-macro2", + "proc_macro_roids", + "quote", + "syn", +] + +[[package]] +name = "graphene-core" +version = "0.1.0" +dependencies = [ + "async-trait", + "dyn-any", + "spirv-std", +] + +[[package]] +name = "graphene-std" +version = "0.1.0" +dependencies = [ + "borrow_stack", + "dyn-any", + "graph-proc-macros", + "graphene-core", + "lock_api", + "once_cell", + "parking_lot 0.12.1", + "proc-macro2", + "quote", + "ra_ap_ide", + "ra_ap_ide_db", + "storage-map", + "syn", +] + [[package]] name = "graphite-editor" version = "0.0.0" @@ -194,6 +463,21 @@ dependencies = [ "wasm-bindgen-test", ] +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + [[package]] name = "hermit-abi" version = "0.1.19" @@ -209,6 +493,45 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" +[[package]] +name = "idna" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +dependencies = [ + "matches", + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "indexmap" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" +dependencies = [ + "autocfg", + "hashbrown", +] + +[[package]] +name = "instant" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "itertools" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.1" @@ -245,6 +568,12 @@ version = "0.2.124" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21a41fed9d98f27ab1c6d161da622a4fa35e8a54a8adc24bbf3ddd0ef70b0e50" +[[package]] +name = "libm" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da83a57f3f5ba3680950aa3cbc806fc297bc0b289d42e8942ed528ace71b8145" + [[package]] name = "lock_api" version = "0.4.7" @@ -264,12 +593,157 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "matches" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" + [[package]] name = "memchr" version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" +[[package]] +name = "memoffset" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +dependencies = [ + "autocfg", +] + +[[package]] +name = "miow" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7377f7792b3afb6a3cba68daa54ca23c032137010460d667fda53a8d66be00e" +dependencies = [ + "windows-sys 0.28.0", +] + +[[package]] +name = "num-traits" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_cpus" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "once_cell" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1" + +[[package]] +name = "oorandom" +version = "11.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" + +[[package]] +name = "parking_lot" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" +dependencies = [ + "instant", + "lock_api", + "parking_lot_core 0.8.5", +] + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core 0.9.3", +] + +[[package]] +name = "parking_lot_core" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216" +dependencies = [ + "cfg-if", + "instant", + "libc", + "redox_syscall", + "smallvec", + "winapi", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-sys 0.36.1", +] + +[[package]] +name = "percent-encoding" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" + +[[package]] +name = "perf-event" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5396562cd2eaa828445d6d34258ae21ee1eb9d40fe626ca7f51c8dccb4af9d66" +dependencies = [ + "libc", + "perf-event-open-sys", +] + +[[package]] +name = "perf-event-open-sys" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce9bedf5da2c234fdf2391ede2b90fabf585355f33100689bc364a3ea558561a" +dependencies = [ + "libc", +] + +[[package]] +name = "petgraph" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" +dependencies = [ + "fixedbitset", + "indexmap", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" + [[package]] name = "ppv-lite86" version = "0.2.16" @@ -309,6 +783,37 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "proc_macro_roids" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06675fa2c577f52bcf77fbb511123927547d154faa08097cc012c66ec3c9611a" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pulldown-cmark" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34f197a544b0c9ab3ae46c359a7ec9cbbb5c7bf97054266fecb7ead794a181d6" +dependencies = [ + "bitflags", + "memchr", + "unicase", +] + +[[package]] +name = "pulldown-cmark-to-cmark" +version = "10.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1353ac408192fa925228d3e60ff746167d03f4f7e54835d78ef79e08225d913" +dependencies = [ + "pulldown-cmark", +] + [[package]] name = "quote" version = "1.0.18" @@ -318,6 +823,408 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "ra_ap_base_db" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec4122901896d123c835db703bc6fcc14c3c1007dbb02d78c2649ad6e6739cb5" +dependencies = [ + "ra_ap_cfg", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_test_utils", + "ra_ap_tt", + "ra_ap_vfs", + "rustc-hash", + "salsa", +] + +[[package]] +name = "ra_ap_cfg" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5adaaf3169c259be5c519e6f4eaf9a07546bdaa5b8bacf0035de3645f4da2cc" +dependencies = [ + "ra_ap_tt", + "rustc-hash", +] + +[[package]] +name = "ra_ap_hir" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02f334df1ac0ceeb8d317e6fc71e6473344ddc8ba75613021a1213ee7b2b3dee" +dependencies = [ + "arrayvec", + "either", + "itertools", + "once_cell", + "ra_ap_base_db", + "ra_ap_cfg", + "ra_ap_hir_def", + "ra_ap_hir_expand", + "ra_ap_hir_ty", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_tt", + "rustc-hash", + "smallvec", +] + +[[package]] +name = "ra_ap_hir_def" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "400a6db17870220d63834cba06883dba10d42beac6f8b3d773e82fe248762adf" +dependencies = [ + "anymap", + "arrayvec", + "bitflags", + "cov-mark", + "dashmap", + "drop_bomb", + "either", + "fst", + "indexmap", + "itertools", + "lock_api", + "once_cell", + "parking_lot 0.12.1", + "ra_ap_base_db", + "ra_ap_cfg", + "ra_ap_hir_expand", + "ra_ap_la-arena", + "ra_ap_limit", + "ra_ap_mbe", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_tt", + "rustc-hash", + "smallvec", + "tracing", +] + +[[package]] +name = "ra_ap_hir_expand" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8aefda64ccd9ab7e0db3c37a039e62af675ee2c665faed7da26cd4a78e88a487" +dependencies = [ + "cov-mark", + "either", + "hashbrown", + "itertools", + "ra_ap_base_db", + "ra_ap_cfg", + "ra_ap_la-arena", + "ra_ap_limit", + "ra_ap_mbe", + "ra_ap_profile", + "ra_ap_syntax", + "ra_ap_tt", + "rustc-hash", + "tracing", +] + +[[package]] +name = "ra_ap_hir_ty" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df104472251b6c25c8c1efd8aaaf1c16b76afe2d06e17951478d321a2a1fa9d4" +dependencies = [ + "arrayvec", + "chalk-ir", + "chalk-recursive", + "chalk-solve", + "cov-mark", + "ena", + "itertools", + "once_cell", + "ra_ap_base_db", + "ra_ap_hir_def", + "ra_ap_hir_expand", + "ra_ap_la-arena", + "ra_ap_limit", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "rustc-hash", + "scoped-tls", + "smallvec", + "tracing", + "typed-arena", +] + +[[package]] +name = "ra_ap_ide" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7df72105729ec1f8464fc2f14c0bbc87c71f25c6d89f19a62791af7c060e091e" +dependencies = [ + "cov-mark", + "crossbeam-channel", + "dot", + "either", + "itertools", + "oorandom", + "pulldown-cmark", + "pulldown-cmark-to-cmark", + "ra_ap_cfg", + "ra_ap_hir", + "ra_ap_ide_assists", + "ra_ap_ide_completion", + "ra_ap_ide_db", + "ra_ap_ide_diagnostics", + "ra_ap_ide_ssr", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_text_edit", + "rustc-hash", + "tracing", + "url", +] + +[[package]] +name = "ra_ap_ide_assists" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09f75f4a4eb7358972c2c5e6777a17013df5e4fd39e32526f156e43bcbb05fd0" +dependencies = [ + "cov-mark", + "either", + "itertools", + "ra_ap_hir", + "ra_ap_ide_db", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_text_edit", + "rustc-hash", +] + +[[package]] +name = "ra_ap_ide_completion" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbdd9cd37a79ddd73e9a88966693b8b562af6846034237a1f08995b5991abb09" +dependencies = [ + "cov-mark", + "either", + "itertools", + "once_cell", + "ra_ap_base_db", + "ra_ap_hir", + "ra_ap_ide_db", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_text_edit", + "rustc-hash", + "smallvec", +] + +[[package]] +name = "ra_ap_ide_db" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f0dee6238d74065219229ce0cc75c62ce1ae5630cba3ab5859e0b340705f8d7" +dependencies = [ + "arrayvec", + "cov-mark", + "either", + "fst", + "indexmap", + "itertools", + "once_cell", + "ra_ap_base_db", + "ra_ap_hir", + "ra_ap_limit", + "ra_ap_parser", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_text_edit", + "rayon", + "rustc-hash", + "tracing", +] + +[[package]] +name = "ra_ap_ide_diagnostics" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73348548ad41cabbd9f45ad51068870c4ee858fc79216f843925d9ab636beb25" +dependencies = [ + "cov-mark", + "either", + "itertools", + "ra_ap_cfg", + "ra_ap_hir", + "ra_ap_ide_db", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_text_edit", + "rustc-hash", +] + +[[package]] +name = "ra_ap_ide_ssr" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81d928f120b669117e640f63deede9c1a4920b0724f98d62ed795e39ac7639f4" +dependencies = [ + "cov-mark", + "itertools", + "ra_ap_hir", + "ra_ap_ide_db", + "ra_ap_parser", + "ra_ap_syntax", + "ra_ap_text_edit", + "rustc-hash", +] + +[[package]] +name = "ra_ap_la-arena" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d3c28b7ef8ec05b8472d93d71dabc2263f8ec19a99a0c0469be7a11ab399d2a" + +[[package]] +name = "ra_ap_limit" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "285e82c5aef76b0e5224b78799e3571a0e290cd9cd6ca32191f6e556b87b50bb" + +[[package]] +name = "ra_ap_mbe" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c0c5928aa2bac8094b16111800e8a51ddb12310feab28d81f41d3463e9e0c71" +dependencies = [ + "cov-mark", + "ra_ap_parser", + "ra_ap_stdx", + "ra_ap_syntax", + "ra_ap_tt", + "rustc-hash", + "smallvec", + "tracing", +] + +[[package]] +name = "ra_ap_parser" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626b67c1acb6795674bd4d83f0700245fb67ad7bb21d0de815578b227fb33767" +dependencies = [ + "drop_bomb", + "ra_ap_limit", + "rustc-ap-rustc_lexer", +] + +[[package]] +name = "ra_ap_paths" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bfaa2bb72b9737b77d25d0dc634b5978c2a3ca024f966de2055a2c0d6c52684" + +[[package]] +name = "ra_ap_profile" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15128f7955c99c82ba17db6d3c3c921719bcb9a6912054486949149d02c4e79a" +dependencies = [ + "cfg-if", + "countme", + "libc", + "once_cell", + "perf-event", + "ra_ap_la-arena", + "winapi", +] + +[[package]] +name = "ra_ap_stdx" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76bf670033bf7b7a707f4e2957108af2b545475808855b3023a1fac69403371d" +dependencies = [ + "always-assert", + "libc", + "miow", + "winapi", +] + +[[package]] +name = "ra_ap_syntax" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6de766172d46071afc07041d37526d4ee4c6446e51d6f5f76b7d0eca816ad21a" +dependencies = [ + "cov-mark", + "indexmap", + "itertools", + "once_cell", + "ra_ap_parser", + "ra_ap_profile", + "ra_ap_stdx", + "ra_ap_text_edit", + "rowan", + "rustc-ap-rustc_lexer", + "rustc-hash", + "smol_str", +] + +[[package]] +name = "ra_ap_test_utils" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bc2d20874f0f1740793f04191f78718b7fb7da97dbb5bfc43e48fd316c9d1c1" +dependencies = [ + "dissimilar", + "ra_ap_profile", + "ra_ap_stdx", + "rustc-hash", + "text-size", +] + +[[package]] +name = "ra_ap_text_edit" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5037f6423837aff4117ac62a3bf8fae0fd876e804e3101e201030fb80dae7846" +dependencies = [ + "itertools", + "text-size", +] + +[[package]] +name = "ra_ap_tt" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff88be31212a08a077437a9688992d3e9ccd41a4e897178ccef4a2abd2cbc2d5" +dependencies = [ + "ra_ap_stdx", + "smol_str", +] + +[[package]] +name = "ra_ap_vfs" +version = "0.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63ee8bde27f1a2df6fd8df1d08a413ee1a3c67cafa7d6a7f5bddacc1f7b0ae85" +dependencies = [ + "fst", + "indexmap", + "ra_ap_paths", + "rustc-hash", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -334,6 +1241,39 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" +[[package]] +name = "rayon" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d" +dependencies = [ + "autocfg", + "crossbeam-deque", + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "num_cpus", +] + +[[package]] +name = "redox_syscall" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +dependencies = [ + "bitflags", +] + [[package]] name = "regex" version = "1.5.5" @@ -362,6 +1302,34 @@ dependencies = [ "syn", ] +[[package]] +name = "rowan" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e88acf7b001007e9e8c989fe7449f6601d909e5dd2c56399fc158977ad6c56e8" +dependencies = [ + "countme", + "hashbrown", + "memoffset", + "rustc-hash", + "text-size", +] + +[[package]] +name = "rustc-ap-rustc_lexer" +version = "725.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950742ef8a203aa7661aad3ab880438ddeb7f95d4b837c30d65db1a2c5df68e" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + [[package]] name = "rustybuzz" version = "0.5.0" @@ -384,6 +1352,35 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f" +[[package]] +name = "salsa" +version = "0.17.0-pre.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b223dccb46c32753144d0b51290da7230bb4aedcd8379d6b4c9a474c18bf17a" +dependencies = [ + "crossbeam-utils", + "indexmap", + "lock_api", + "log", + "oorandom", + "parking_lot 0.11.2", + "rustc-hash", + "salsa-macros", + "smallvec", +] + +[[package]] +name = "salsa-macros" +version = "0.17.0-pre.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac6c2e352df550bf019da7b16164ed2f7fa107c39653d1311d1bba42d1582ff7" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "scoped-tls" version = "1.0.0" @@ -445,6 +1442,15 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" +[[package]] +name = "smol_str" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7475118a28b7e3a2e157ce0131ba8c5526ea96e90ee601d9f6bb2e286a35ab44" +dependencies = [ + "serde", +] + [[package]] name = "spin" version = "0.9.3" @@ -454,6 +1460,43 @@ dependencies = [ "lock_api", ] +[[package]] +name = "spirv-std" +version = "0.4.0-alpha.12" +source = "git+https://github.com/EmbarkStudios/rust-gpu#0866cf591a7fdbbd15bdb3468e192bb9b6189fd0" +dependencies = [ + "bitflags", + "glam", + "num-traits", + "spirv-std-macros", + "spirv-types", +] + +[[package]] +name = "spirv-std-macros" +version = "0.4.0-alpha.12" +source = "git+https://github.com/EmbarkStudios/rust-gpu#0866cf591a7fdbbd15bdb3468e192bb9b6189fd0" +dependencies = [ + "proc-macro2", + "quote", + "spirv-types", + "syn", +] + +[[package]] +name = "spirv-types" +version = "0.4.0-alpha.12" +source = "git+https://github.com/EmbarkStudios/rust-gpu#0866cf591a7fdbbd15bdb3468e192bb9b6189fd0" + +[[package]] +name = "storage-map" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418bb14643aa55a7841d5303f72cf512cfb323b8cc221d51580500a1ca75206c" +dependencies = [ + "lock_api", +] + [[package]] name = "syn" version = "1.0.91" @@ -465,6 +1508,18 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "synstructure" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "unicode-xid", +] + [[package]] name = "termcolor" version = "1.1.3" @@ -496,6 +1551,12 @@ dependencies = [ "syn", ] +[[package]] +name = "text-size" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "288cb548dbe72b652243ea797201f3d481a0609a967980fcc5b2315ea811560a" + [[package]] name = "thiserror" version = "1.0.30" @@ -516,12 +1577,80 @@ dependencies = [ "syn", ] +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" + +[[package]] +name = "tracing" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307" +dependencies = [ + "cfg-if", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11c75893af559bc8e10716548bdef5cb2b983f8e637db9d0e15126b61b484ee2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7" +dependencies = [ + "once_cell", +] + [[package]] name = "ttf-parser" version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c74c96594835e10fa545e2a51e8709f30b173a092bfd6036ef2cec53376244f3" +[[package]] +name = "typed-arena" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0685c84d5d54d1c26f7d3eb96cd41550adb97baed141a761cf335d3d33bcd0ae" + +[[package]] +name = "unicase" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" +dependencies = [ + "version_check", +] + +[[package]] +name = "unicode-bidi" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" + [[package]] name = "unicode-bidi-mirroring" version = "0.1.0" @@ -540,18 +1669,45 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07547e3ee45e28326cc23faac56d44f58f16ab23e413db526debce3b0bfd2742" +[[package]] +name = "unicode-normalization" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854cbdc4f7bc6ae19c820d44abdc3277ac3e1b2b93db20a636825d9322fb60e6" +dependencies = [ + "tinyvec", +] + [[package]] name = "unicode-script" version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58dd944fd05f2f0b5c674917aea8a4df6af84f2d8de3fe8d988b95d28fb8fb09" +[[package]] +name = "unicode-segmentation" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" + [[package]] name = "unicode-xid" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" +[[package]] +name = "url" +version = "2.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" +dependencies = [ + "form_urlencoded", + "idna", + "matches", + "percent-encoding", +] + [[package]] name = "version_check" version = "0.9.4" @@ -690,3 +1846,89 @@ name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-sys" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82ca39602d5cbfa692c4b67e3bcbb2751477355141c1ed434c94da4186836ff6" +dependencies = [ + "windows_aarch64_msvc 0.28.0", + "windows_i686_gnu 0.28.0", + "windows_i686_msvc 0.28.0", + "windows_x86_64_gnu 0.28.0", + "windows_x86_64_msvc 0.28.0", +] + +[[package]] +name = "windows-sys" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +dependencies = [ + "windows_aarch64_msvc 0.36.1", + "windows_i686_gnu 0.36.1", + "windows_i686_msvc 0.36.1", + "windows_x86_64_gnu 0.36.1", + "windows_x86_64_msvc 0.36.1", +] + +[[package]] +name = "windows_aarch64_msvc" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52695a41e536859d5308cc613b4a022261a274390b25bd29dfff4bf08505f3c2" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" + +[[package]] +name = "windows_i686_gnu" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f54725ac23affef038fecb177de6c9bf065787c2f432f79e3c373da92f3e1d8a" + +[[package]] +name = "windows_i686_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" + +[[package]] +name = "windows_i686_msvc" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d5158a43cc43623c0729d1ad6647e62fa384a3d135fd15108d37c683461f64" + +[[package]] +name = "windows_i686_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc31f409f565611535130cfe7ee8e6655d3fa99c1c61013981e491921b5ce954" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f2b8c7cbd3bfdddd9ab98769f9746a7fad1bca236554cd032b78d768bc0e89f" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" diff --git a/Cargo.toml b/Cargo.toml index 458b20f86..0d9898a57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,8 +4,12 @@ members = [ "graphene", "proc-macros", "frontend/wasm", - "bezier-rs/lib", - "bezier-rs/docs/interactive-docs/wasm", + "bezier-rs/lib", + "bezier-rs/docs/interactive-docs/wasm", + "node-graph/gcore", + "node-graph/gstd", + "node-graph/borrow_stack", + "libraries/dyn-any", ] [profile.release.package.graphite-wasm] diff --git a/libraries/dyn-any/Cargo.toml b/libraries/dyn-any/Cargo.toml new file mode 100644 index 000000000..e5fe44f02 --- /dev/null +++ b/libraries/dyn-any/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "dyn-any" +version = "0.2.0" +edition = "2021" +authors = ["Dennis Kobert "] + + +description = "An Any trait that works for arbitrary lifetimes" +documentation = "https://docs.rs/dyn-any" +license = "MIT OR Apache-2.0" +readme = "README.md" + +[dependencies] +dyn-any-derive = { path = "derive", version = "0.2.0", optional = true } + +[features] +derive = ["dyn-any-derive"] + +[package.metadata.docs.rs] +all-features = true diff --git a/libraries/dyn-any/LICENSE-APACHE b/libraries/dyn-any/LICENSE-APACHE new file mode 100644 index 000000000..261eeb9e9 --- /dev/null +++ b/libraries/dyn-any/LICENSE-APACHE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/libraries/dyn-any/LICENSE-MIT b/libraries/dyn-any/LICENSE-MIT new file mode 100644 index 000000000..969d061e8 --- /dev/null +++ b/libraries/dyn-any/LICENSE-MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/libraries/dyn-any/README.md b/libraries/dyn-any/README.md new file mode 100644 index 000000000..3147668b6 --- /dev/null +++ b/libraries/dyn-any/README.md @@ -0,0 +1,4 @@ +# DynAny Trait + + +A `Any`-like trait and derive macros for non `'static` lifetimes. diff --git a/libraries/dyn-any/derive/Cargo.toml b/libraries/dyn-any/derive/Cargo.toml new file mode 100644 index 000000000..ecb9f6703 --- /dev/null +++ b/libraries/dyn-any/derive/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "dyn-any-derive" +version = "0.2.0" +edition = "2021" +authors = ["Dennis Kobert"] + +description = "#[derive(DynAny<'a>)]" +documentation = "https://docs.rs/dyn-any-derive" +repository = "https://github.com/TrueDoctor/dyn-any" +readme = "../README.md" + +[lib] +proc-macro = true + +[dependencies] +proc-macro2 = "1" +quote = "1" +proc_macro_roids = "0.7" +syn = { version = "1", default-features = false, features = ["derive", "parsing", "proc-macro", "printing"] } + +[dev-dependencies] +dyn-any = { path = "..", features = ["derive"] } diff --git a/libraries/dyn-any/derive/src/lib.rs b/libraries/dyn-any/derive/src/lib.rs new file mode 100644 index 000000000..64e16a46c --- /dev/null +++ b/libraries/dyn-any/derive/src/lib.rs @@ -0,0 +1,78 @@ +#![doc(html_root_url = "http://docs.rs/dyn-any-derive/0.1.0")] + +extern crate proc_macro; + +use proc_macro::TokenStream; +use proc_macro2::Span; +use quote::quote; +use syn::{parse_macro_input, DeriveInput, GenericParam, Lifetime, LifetimeDef, TypeParamBound}; + +/// Derives an implementation for the [`DynAny`] trait. +/// +/// # Note +/// +/// Currently only works with `struct` inputs. +/// +/// # Example +/// +/// ## Struct +/// +/// ``` +/// # use dyn_any::{DynAny, StaticType}; +/// #[derive(DynAny)] +/// pub struct Color<'a, 'b> { +/// r: &'a u8, +/// g: &'b u8, +/// b: &'a u8, +/// } +/// +/// +/// // Generated Impl +/// +/// // impl<'dyn_any> StaticType for Color<'dyn_any, 'dyn_any> { +/// // type Static = Color<'static, 'static>; +/// // } +/// +/// ``` + +#[proc_macro_derive(DynAny, attributes(dyn_any_derive))] +pub fn system_desc_derive(input: TokenStream) -> TokenStream { + let ast = parse_macro_input!(input as DeriveInput); + let struct_name = &ast.ident; + let generics = &ast.generics; + + let static_params = replace_lifetimes(generics, "'static"); + let dyn_params = replace_lifetimes(generics, "'dyn_any"); + + let old_params = &generics.params.iter().collect::>(); + quote! { + impl<'dyn_any, #(#old_params,)*> StaticType for #struct_name <#(#dyn_params,)*> { + type Static = #struct_name <#(#static_params,)*>; + } + } + .into() +} + +fn replace_lifetimes(generics: &syn::Generics, replacement: &str) -> Vec { + let params = generics + .params + .iter() + .map(|param| { + let param = match param { + GenericParam::Lifetime(_) => GenericParam::Lifetime(LifetimeDef::new(Lifetime::new(replacement, Span::call_site()))), + GenericParam::Type(t) => { + let mut t = t.clone(); + t.bounds.iter_mut().for_each(|bond| { + if let TypeParamBound::Lifetime(ref mut t) = bond { + *t = Lifetime::new(replacement, Span::call_site()) + } + }); + GenericParam::Type(t.clone()) + } + c => c.clone(), + }; + quote! {#param} + }) + .collect::>(); + params +} diff --git a/libraries/dyn-any/src/lib.rs b/libraries/dyn-any/src/lib.rs new file mode 100644 index 000000000..ef515da23 --- /dev/null +++ b/libraries/dyn-any/src/lib.rs @@ -0,0 +1,131 @@ +#![doc(html_root_url = "http://docs.rs/const-default/1.0.0")] +#![cfg_attr(feature = "unstable-docs", feature(doc_cfg))] + +#[cfg(feature = "derive")] +#[cfg_attr(feature = "unstable-docs", doc(cfg(feature = "derive")))] +pub use dyn_any_derive::DynAny; + +use std::any::TypeId; + +pub trait DynAny<'a> { + fn type_id(&self) -> TypeId; +} + +impl<'a, T: StaticType> DynAny<'a> for T { + fn type_id(&self) -> std::any::TypeId { + std::any::TypeId::of::() + } +} +pub fn downcast_ref<'a, V: StaticType>(i: &'a dyn DynAny<'a>) -> Option<&'a V> { + if i.type_id() == std::any::TypeId::of::<::Static>() { + // SAFETY: caller guarantees that T is the correct type + let ptr = i as *const dyn DynAny<'a> as *const V; + Some(unsafe { &*ptr }) + } else { + None + } +} + +pub trait StaticType { + type Static: 'static + ?Sized; + fn type_id(&self) -> std::any::TypeId { + std::any::TypeId::of::() + } +} + +pub trait StaticTypeSized { + type Static: 'static; + fn type_id(&self) -> std::any::TypeId { + std::any::TypeId::of::() + } +} +impl<'a, T: StaticTypeSized> StaticType for T { + type Static = ::Static; +} +pub trait StaticTypeClone { + type Static: 'static + Clone; + fn type_id(&self) -> std::any::TypeId { + std::any::TypeId::of::() + } +} +impl<'a, T: StaticTypeClone> StaticTypeSized for T { + type Static = ::Static; +} + +macro_rules! impl_type { + ($($id:ident$(<$($(($l:lifetime, $s:lifetime)),*|)?$($T:ident),*>)?),*) => { + $( + impl<'a, $($($T: 'a + $crate::StaticTypeSized + Sized,)*)?> $crate::StaticTypeSized for $id $(<$($($l,)*)?$($T, )*>)?{ + type Static = $id$(<$($($s,)*)?$(<$T as $crate::StaticTypeSized>::Static,)*>)?; + } + )* + }; +} +impl<'a, T: Clone + StaticTypeClone> StaticTypeClone + for std::borrow::Cow<'a, T> +{ + type Static = std::borrow::Cow<'static, ::Static>; +} +impl<'a, T: StaticTypeSized> StaticTypeSized for *const [T] { + type Static = *const [::Static]; +} +impl<'a, T: StaticTypeSized> StaticTypeSized for *mut [T] { + type Static = *mut [::Static]; +} +impl<'a, T: StaticTypeSized> StaticTypeSized for &'a [T] { + type Static = &'static [::Static]; +} +impl<'a> StaticTypeSized for &'a str { + type Static = &'static str; +} +impl<'a> StaticTypeSized for () { + type Static = (); +} +impl<'a, T: 'a + StaticTypeClone> StaticTypeClone for &'a T { + type Static = &'static ::Static; +} +impl<'a, T: StaticTypeSized, const N: usize> StaticTypeSized for [T; N] { + type Static = [::Static; N]; +} + +use core::{ + cell::{Cell, RefCell, UnsafeCell}, + iter::Empty, + marker::{PhantomData, PhantomPinned}, + mem::{ManuallyDrop, MaybeUninit}, + num::Wrapping, + time::Duration, +}; +use std::{ + collections::*, + sync::{atomic::*, *}, + vec::Vec, +}; + +impl_type!(Option,Result,Cell,UnsafeCell,RefCell,MaybeUninit, + Vec, String, BTreeMap,BTreeSet, LinkedList, VecDeque, + BinaryHeap, ManuallyDrop, PhantomData, PhantomPinned,Empty, + Wrapping, Duration, Once, Mutex, RwLock, bool, f32, f64, char, + u8, AtomicU8, u16,AtomicU16, u32,AtomicU32, u64,AtomicU64, usize,AtomicUsize, + i8,AtomicI8, i16,AtomicI16, i32,AtomicI32, i64,AtomicI64, isize,AtomicIsize, + i128, u128, AtomicBool, AtomicPtr +); +macro_rules! impl_tuple { + (@rec $t:ident) => { }; + (@rec $_:ident $($t:ident)+) => { + impl_tuple! { @impl $($t)* } + impl_tuple! { @rec $($t)* } + }; + (@impl $($t:ident)*) => { + impl<'dyn_any, $($t: StaticTypeSized,)*> StaticTypeSized for ($($t,)*) { + type Static = ($(<$t as $crate::StaticTypeSized>::Static,)*); + } + }; + ($($t:ident)*) => { + impl_tuple! { @rec _t $($t)* } + }; +} + +impl_tuple! { + A B C D E F G H I J K L +} diff --git a/node-graph/.gitignore b/node-graph/.gitignore deleted file mode 100644 index 576f2002f..000000000 --- a/node-graph/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -**/target - diff --git a/node-graph/.gitmodules b/node-graph/.gitmodules deleted file mode 100644 index c2ad165c9..000000000 --- a/node-graph/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "non-static-any"] - path = non-static-any - url = git@github.com:TrueDoctor/non-static-any.git diff --git a/node-graph/Cargo.lock b/node-graph/Cargo.lock deleted file mode 100644 index 4508a7ff9..000000000 --- a/node-graph/Cargo.lock +++ /dev/null @@ -1,1579 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "always-assert" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf688625d06217d5b1bb0ea9d9c44a1635fd0ee3534466388d18203174f4d11" -dependencies = [ - "log", -] - -[[package]] -name = "anymap" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33954243bd79057c2de7338850b85983a44588021f8a5fee574a8888c6de4344" - -[[package]] -name = "arrayref" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" - -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - -[[package]] -name = "arrayvec" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" - -[[package]] -name = "async-trait" -version = "0.1.53" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed6aa3524a2dfcf9fe180c51eae2b58738348d819517ceadf95789c51fff7600" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi", - "libc", - "winapi", -] - -[[package]] -name = "autocfg" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" - -[[package]] -name = "base64" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "blake2b_simd" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "constant_time_eq", -] - -[[package]] -name = "borrow_stack" -version = "0.1.0" - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "cc" -version = "1.0.73" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "chalk-derive" -version = "0.81.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bb2ca8aa9da8210effebb51e49b4bd8bc25c06df38220d58a60df35a08a84af" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "synstructure", -] - -[[package]] -name = "chalk-ir" -version = "0.81.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e128fa3652ef2cdd5a7e64e0cc5a89f40170f80dd9f6357ba4a82cf027abd0d5" -dependencies = [ - "bitflags", - "chalk-derive", - "lazy_static", -] - -[[package]] -name = "chalk-recursive" -version = "0.81.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6fcba1e8b66a291430b6aa18368a95da0577d7f126653baae71c0cb0f3d093" -dependencies = [ - "chalk-derive", - "chalk-ir", - "chalk-solve", - "rustc-hash", - "tracing", -] - -[[package]] -name = "chalk-solve" -version = "0.81.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43151ddc627d8dfbde6af44405cb8e98a15828f66a3d4a3da6a1fad6c5dc4687" -dependencies = [ - "chalk-derive", - "chalk-ir", - "ena", - "indexmap", - "itertools", - "petgraph", - "rustc-hash", - "tracing", -] - -[[package]] -name = "constant_time_eq" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" - -[[package]] -name = "countme" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" -dependencies = [ - "dashmap", - "once_cell", - "rustc-hash", -] - -[[package]] -name = "cov-mark" -version = "2.0.0-pre.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d48d8f76bd9331f19fe2aaf3821a9f9fb32c3963e1e3d6ce82a8c09cef7444a" - -[[package]] -name = "crossbeam-channel" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aaa7bd5fb665c6864b5f963dd9097905c54125909c7aa94c9e18507cdbe6c53" -dependencies = [ - "cfg-if 1.0.0", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" -dependencies = [ - "cfg-if 1.0.0", - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1145cf131a2c6ba0615079ab6a638f7e1973ac9c2634fcbeaaad6114246efe8c" -dependencies = [ - "autocfg", - "cfg-if 1.0.0", - "crossbeam-utils", - "lazy_static", - "memoffset", - "scopeguard", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf124c720b7686e3c2663cf54062ab0f68a88af2fb6a030e87e30bf721fcb38" -dependencies = [ - "cfg-if 1.0.0", - "lazy_static", -] - -[[package]] -name = "dashmap" -version = "5.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3495912c9c1ccf2e18976439f4443f3fee0fd61f424ff99fde6a66b15ecb448f" -dependencies = [ - "cfg-if 1.0.0", - "hashbrown 0.12.1", - "lock_api", - "parking_lot_core 0.9.3", -] - -[[package]] -name = "dirs" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901" -dependencies = [ - "libc", - "redox_users", - "winapi", -] - -[[package]] -name = "dissimilar" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c97b9233581d84b8e1e689cdd3a47b6f69770084fc246e86a7f78b0d9c1d4a5" - -[[package]] -name = "dot" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a74b6c4d4a1cff5f454164363c16b72fa12463ca6b31f4b5f2035a65fa3d5906" - -[[package]] -name = "drop_bomb" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bda8e21c04aca2ae33ffc2fd8c23134f3cac46db123ba97bd9d3f3b8a4a85e1" - -[[package]] -name = "dyn-any" -version = "0.2.0" -dependencies = [ - "dyn-any-derive", -] - -[[package]] -name = "dyn-any-derive" -version = "0.2.0" -dependencies = [ - "dyn-any", - "proc-macro2", - "proc_macro_roids", - "quote", - "syn", -] - -[[package]] -name = "either" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" - -[[package]] -name = "ena" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3" -dependencies = [ - "log", -] - -[[package]] -name = "fixedbitset" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" - -[[package]] -name = "form_urlencoded" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" -dependencies = [ - "matches", - "percent-encoding", -] - -[[package]] -name = "fst" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab85b9b05e3978cc9a9cf8fea7f01b494e1a09ed3037e16ba39edc7a29eb61a" - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "wasi", -] - -[[package]] -name = "glam" -version = "0.20.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43e957e744be03f5801a55472f593d43fabdebf25a4585db250f04d86b1675f" -dependencies = [ - "num-traits", -] - -[[package]] -name = "graph-proc-macros" -version = "0.1.0" -dependencies = [ - "graphene-core", - "proc-macro2", - "proc_macro_roids", - "quote", - "syn", -] - -[[package]] -name = "graphene-core" -version = "0.1.0" -dependencies = [ - "async-trait", - "dyn-any", - "spirv-std", -] - -[[package]] -name = "graphene-std" -version = "0.1.0" -dependencies = [ - "borrow_stack", - "dyn-any", - "graph-proc-macros", - "graphene-core", - "lock_api", - "once_cell", - "parking_lot 0.12.1", - "pretty-token-stream", - "proc-macro2", - "quote", - "ra_ap_ide", - "ra_ap_ide_db", - "storage-map", - "syn", -] - -[[package]] -name = "hashbrown" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" - -[[package]] -name = "hashbrown" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db0d4cf898abf0081f964436dc980e96670a0f36863e4b83aaacdb65c9d7ccc3" - -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] - -[[package]] -name = "idna" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - -[[package]] -name = "indexmap" -version = "1.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a" -dependencies = [ - "autocfg", - "hashbrown 0.11.2", -] - -[[package]] -name = "instant" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "itertools" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" -dependencies = [ - "either", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "libc" -version = "0.2.126" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" - -[[package]] -name = "libm" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33a33a362ce288760ec6a508b94caaec573ae7d3bbbd91b87aa0bad4456839db" - -[[package]] -name = "lock_api" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53" -dependencies = [ - "autocfg", - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "matches" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" - -[[package]] -name = "memchr" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" - -[[package]] -name = "memoffset" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" -dependencies = [ - "autocfg", -] - -[[package]] -name = "miow" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7377f7792b3afb6a3cba68daa54ca23c032137010460d667fda53a8d66be00e" -dependencies = [ - "windows-sys 0.28.0", -] - -[[package]] -name = "nix" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c722bee1037d430d0f8e687bbdbf222f27cc6e4e68d5caf630857bb2b6dbdce" -dependencies = [ - "bitflags", - "cc", - "cfg-if 0.1.10", - "libc", - "void", -] - -[[package]] -name = "num-traits" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" -dependencies = [ - "autocfg", - "libm", -] - -[[package]] -name = "num_cpus" -version = "1.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" -dependencies = [ - "hermit-abi", - "libc", -] - -[[package]] -name = "once_cell" -version = "1.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7709cef83f0c1f58f666e746a08b21e0085f7440fa6a29cc194d68aac97a4225" - -[[package]] -name = "oorandom" -version = "11.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" - -[[package]] -name = "parking_lot" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" -dependencies = [ - "instant", - "lock_api", - "parking_lot_core 0.8.5", -] - -[[package]] -name = "parking_lot" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" -dependencies = [ - "lock_api", - "parking_lot_core 0.9.3", -] - -[[package]] -name = "parking_lot_core" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216" -dependencies = [ - "cfg-if 1.0.0", - "instant", - "libc", - "redox_syscall 0.2.13", - "smallvec", - "winapi", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "redox_syscall 0.2.13", - "smallvec", - "windows-sys 0.36.1", -] - -[[package]] -name = "percent-encoding" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" - -[[package]] -name = "perf-event" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5396562cd2eaa828445d6d34258ae21ee1eb9d40fe626ca7f51c8dccb4af9d66" -dependencies = [ - "libc", - "perf-event-open-sys", -] - -[[package]] -name = "perf-event-open-sys" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce9bedf5da2c234fdf2391ede2b90fabf585355f33100689bc364a3ea558561a" -dependencies = [ - "libc", -] - -[[package]] -name = "petgraph" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" -dependencies = [ - "fixedbitset", - "indexmap", -] - -[[package]] -name = "pin-project-lite" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" - -[[package]] -name = "pretty-token-stream" -version = "0.1.0" -dependencies = [ - "atty", - "cfg-if 0.1.10", - "nix", - "proc-macro2", - "term", -] - -[[package]] -name = "proc-macro2" -version = "1.0.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "proc_macro_roids" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06675fa2c577f52bcf77fbb511123927547d154faa08097cc012c66ec3c9611a" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "pulldown-cmark" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34f197a544b0c9ab3ae46c359a7ec9cbbb5c7bf97054266fecb7ead794a181d6" -dependencies = [ - "bitflags", - "memchr", - "unicase", -] - -[[package]] -name = "pulldown-cmark-to-cmark" -version = "10.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eafb76310f7dc895b5d83d24f2a00e244fc8a68ef94f4257eb4060984d0385f" -dependencies = [ - "pulldown-cmark", -] - -[[package]] -name = "quote" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "ra_ap_base_db" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec4122901896d123c835db703bc6fcc14c3c1007dbb02d78c2649ad6e6739cb5" -dependencies = [ - "ra_ap_cfg", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_test_utils", - "ra_ap_tt", - "ra_ap_vfs", - "rustc-hash", - "salsa", -] - -[[package]] -name = "ra_ap_cfg" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5adaaf3169c259be5c519e6f4eaf9a07546bdaa5b8bacf0035de3645f4da2cc" -dependencies = [ - "ra_ap_tt", - "rustc-hash", -] - -[[package]] -name = "ra_ap_hir" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02f334df1ac0ceeb8d317e6fc71e6473344ddc8ba75613021a1213ee7b2b3dee" -dependencies = [ - "arrayvec 0.7.2", - "either", - "itertools", - "once_cell", - "ra_ap_base_db", - "ra_ap_cfg", - "ra_ap_hir_def", - "ra_ap_hir_expand", - "ra_ap_hir_ty", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_tt", - "rustc-hash", - "smallvec", -] - -[[package]] -name = "ra_ap_hir_def" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "400a6db17870220d63834cba06883dba10d42beac6f8b3d773e82fe248762adf" -dependencies = [ - "anymap", - "arrayvec 0.7.2", - "bitflags", - "cov-mark", - "dashmap", - "drop_bomb", - "either", - "fst", - "indexmap", - "itertools", - "lock_api", - "once_cell", - "parking_lot 0.12.1", - "ra_ap_base_db", - "ra_ap_cfg", - "ra_ap_hir_expand", - "ra_ap_la-arena", - "ra_ap_limit", - "ra_ap_mbe", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_tt", - "rustc-hash", - "smallvec", - "tracing", -] - -[[package]] -name = "ra_ap_hir_expand" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8aefda64ccd9ab7e0db3c37a039e62af675ee2c665faed7da26cd4a78e88a487" -dependencies = [ - "cov-mark", - "either", - "hashbrown 0.12.1", - "itertools", - "ra_ap_base_db", - "ra_ap_cfg", - "ra_ap_la-arena", - "ra_ap_limit", - "ra_ap_mbe", - "ra_ap_profile", - "ra_ap_syntax", - "ra_ap_tt", - "rustc-hash", - "tracing", -] - -[[package]] -name = "ra_ap_hir_ty" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df104472251b6c25c8c1efd8aaaf1c16b76afe2d06e17951478d321a2a1fa9d4" -dependencies = [ - "arrayvec 0.7.2", - "chalk-ir", - "chalk-recursive", - "chalk-solve", - "cov-mark", - "ena", - "itertools", - "once_cell", - "ra_ap_base_db", - "ra_ap_hir_def", - "ra_ap_hir_expand", - "ra_ap_la-arena", - "ra_ap_limit", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "rustc-hash", - "scoped-tls", - "smallvec", - "tracing", - "typed-arena", -] - -[[package]] -name = "ra_ap_ide" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7df72105729ec1f8464fc2f14c0bbc87c71f25c6d89f19a62791af7c060e091e" -dependencies = [ - "cov-mark", - "crossbeam-channel", - "dot", - "either", - "itertools", - "oorandom", - "pulldown-cmark", - "pulldown-cmark-to-cmark", - "ra_ap_cfg", - "ra_ap_hir", - "ra_ap_ide_assists", - "ra_ap_ide_completion", - "ra_ap_ide_db", - "ra_ap_ide_diagnostics", - "ra_ap_ide_ssr", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_text_edit", - "rustc-hash", - "tracing", - "url", -] - -[[package]] -name = "ra_ap_ide_assists" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09f75f4a4eb7358972c2c5e6777a17013df5e4fd39e32526f156e43bcbb05fd0" -dependencies = [ - "cov-mark", - "either", - "itertools", - "ra_ap_hir", - "ra_ap_ide_db", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_text_edit", - "rustc-hash", -] - -[[package]] -name = "ra_ap_ide_completion" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbdd9cd37a79ddd73e9a88966693b8b562af6846034237a1f08995b5991abb09" -dependencies = [ - "cov-mark", - "either", - "itertools", - "once_cell", - "ra_ap_base_db", - "ra_ap_hir", - "ra_ap_ide_db", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_text_edit", - "rustc-hash", - "smallvec", -] - -[[package]] -name = "ra_ap_ide_db" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f0dee6238d74065219229ce0cc75c62ce1ae5630cba3ab5859e0b340705f8d7" -dependencies = [ - "arrayvec 0.7.2", - "cov-mark", - "either", - "fst", - "indexmap", - "itertools", - "once_cell", - "ra_ap_base_db", - "ra_ap_hir", - "ra_ap_limit", - "ra_ap_parser", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_text_edit", - "rayon", - "rustc-hash", - "tracing", -] - -[[package]] -name = "ra_ap_ide_diagnostics" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73348548ad41cabbd9f45ad51068870c4ee858fc79216f843925d9ab636beb25" -dependencies = [ - "cov-mark", - "either", - "itertools", - "ra_ap_cfg", - "ra_ap_hir", - "ra_ap_ide_db", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_text_edit", - "rustc-hash", -] - -[[package]] -name = "ra_ap_ide_ssr" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81d928f120b669117e640f63deede9c1a4920b0724f98d62ed795e39ac7639f4" -dependencies = [ - "cov-mark", - "itertools", - "ra_ap_hir", - "ra_ap_ide_db", - "ra_ap_parser", - "ra_ap_syntax", - "ra_ap_text_edit", - "rustc-hash", -] - -[[package]] -name = "ra_ap_la-arena" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d3c28b7ef8ec05b8472d93d71dabc2263f8ec19a99a0c0469be7a11ab399d2a" - -[[package]] -name = "ra_ap_limit" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "285e82c5aef76b0e5224b78799e3571a0e290cd9cd6ca32191f6e556b87b50bb" - -[[package]] -name = "ra_ap_mbe" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c0c5928aa2bac8094b16111800e8a51ddb12310feab28d81f41d3463e9e0c71" -dependencies = [ - "cov-mark", - "ra_ap_parser", - "ra_ap_stdx", - "ra_ap_syntax", - "ra_ap_tt", - "rustc-hash", - "smallvec", - "tracing", -] - -[[package]] -name = "ra_ap_parser" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "626b67c1acb6795674bd4d83f0700245fb67ad7bb21d0de815578b227fb33767" -dependencies = [ - "drop_bomb", - "ra_ap_limit", - "rustc-ap-rustc_lexer", -] - -[[package]] -name = "ra_ap_paths" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bfaa2bb72b9737b77d25d0dc634b5978c2a3ca024f966de2055a2c0d6c52684" - -[[package]] -name = "ra_ap_profile" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15128f7955c99c82ba17db6d3c3c921719bcb9a6912054486949149d02c4e79a" -dependencies = [ - "cfg-if 1.0.0", - "countme", - "libc", - "once_cell", - "perf-event", - "ra_ap_la-arena", - "winapi", -] - -[[package]] -name = "ra_ap_stdx" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76bf670033bf7b7a707f4e2957108af2b545475808855b3023a1fac69403371d" -dependencies = [ - "always-assert", - "libc", - "miow", - "winapi", -] - -[[package]] -name = "ra_ap_syntax" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6de766172d46071afc07041d37526d4ee4c6446e51d6f5f76b7d0eca816ad21a" -dependencies = [ - "cov-mark", - "indexmap", - "itertools", - "once_cell", - "ra_ap_parser", - "ra_ap_profile", - "ra_ap_stdx", - "ra_ap_text_edit", - "rowan", - "rustc-ap-rustc_lexer", - "rustc-hash", - "smol_str", -] - -[[package]] -name = "ra_ap_test_utils" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bc2d20874f0f1740793f04191f78718b7fb7da97dbb5bfc43e48fd316c9d1c1" -dependencies = [ - "dissimilar", - "ra_ap_profile", - "ra_ap_stdx", - "rustc-hash", - "text-size", -] - -[[package]] -name = "ra_ap_text_edit" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5037f6423837aff4117ac62a3bf8fae0fd876e804e3101e201030fb80dae7846" -dependencies = [ - "itertools", - "text-size", -] - -[[package]] -name = "ra_ap_tt" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff88be31212a08a077437a9688992d3e9ccd41a4e897178ccef4a2abd2cbc2d5" -dependencies = [ - "ra_ap_stdx", - "smol_str", -] - -[[package]] -name = "ra_ap_vfs" -version = "0.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63ee8bde27f1a2df6fd8df1d08a413ee1a3c67cafa7d6a7f5bddacc1f7b0ae85" -dependencies = [ - "fst", - "indexmap", - "ra_ap_paths", - "rustc-hash", -] - -[[package]] -name = "rayon" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d" -dependencies = [ - "autocfg", - "crossbeam-deque", - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f" -dependencies = [ - "crossbeam-channel", - "crossbeam-deque", - "crossbeam-utils", - "num_cpus", -] - -[[package]] -name = "redox_syscall" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" - -[[package]] -name = "redox_syscall" -version = "0.2.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" -dependencies = [ - "bitflags", -] - -[[package]] -name = "redox_users" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" -dependencies = [ - "getrandom", - "redox_syscall 0.1.57", - "rust-argon2", -] - -[[package]] -name = "rowan" -version = "0.15.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce1f383129e417a6265b16ed78e6e9307748f0863b2ba75f78ff14717db5b017" -dependencies = [ - "countme", - "hashbrown 0.12.1", - "memoffset", - "rustc-hash", - "text-size", -] - -[[package]] -name = "rust-argon2" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb" -dependencies = [ - "base64", - "blake2b_simd", - "constant_time_eq", - "crossbeam-utils", -] - -[[package]] -name = "rustc-ap-rustc_lexer" -version = "725.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f950742ef8a203aa7661aad3ab880438ddeb7f95d4b837c30d65db1a2c5df68e" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - -[[package]] -name = "salsa" -version = "0.17.0-pre.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b223dccb46c32753144d0b51290da7230bb4aedcd8379d6b4c9a474c18bf17a" -dependencies = [ - "crossbeam-utils", - "indexmap", - "lock_api", - "log", - "oorandom", - "parking_lot 0.11.2", - "rustc-hash", - "salsa-macros", - "smallvec", -] - -[[package]] -name = "salsa-macros" -version = "0.17.0-pre.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac6c2e352df550bf019da7b16164ed2f7fa107c39653d1311d1bba42d1582ff7" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "scoped-tls" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" - -[[package]] -name = "scopeguard" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" - -[[package]] -name = "serde" -version = "1.0.137" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" - -[[package]] -name = "smallvec" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" - -[[package]] -name = "smol_str" -version = "0.1.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7475118a28b7e3a2e157ce0131ba8c5526ea96e90ee601d9f6bb2e286a35ab44" -dependencies = [ - "serde", -] - -[[package]] -name = "spirv-std" -version = "0.4.0-alpha.12" -source = "git+https://github.com/EmbarkStudios/rust-gpu#685c79a9725f9fb68ce17dd00e742b98a03f3870" -dependencies = [ - "bitflags", - "glam", - "num-traits", - "spirv-std-macros", - "spirv-types", -] - -[[package]] -name = "spirv-std-macros" -version = "0.4.0-alpha.12" -source = "git+https://github.com/EmbarkStudios/rust-gpu#685c79a9725f9fb68ce17dd00e742b98a03f3870" -dependencies = [ - "proc-macro2", - "quote", - "spirv-types", - "syn", -] - -[[package]] -name = "spirv-types" -version = "0.4.0-alpha.12" -source = "git+https://github.com/EmbarkStudios/rust-gpu#685c79a9725f9fb68ce17dd00e742b98a03f3870" - -[[package]] -name = "storage-map" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418bb14643aa55a7841d5303f72cf512cfb323b8cc221d51580500a1ca75206c" -dependencies = [ - "lock_api", -] - -[[package]] -name = "syn" -version = "1.0.90" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "704df27628939572cd88d33f171cd6f896f4eaca85252c6e0a72d8d8287ee86f" -dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", -] - -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "unicode-xid", -] - -[[package]] -name = "term" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edd106a334b7657c10b7c540a0106114feadeb4dc314513e97df481d5d966f42" -dependencies = [ - "byteorder", - "dirs", - "winapi", -] - -[[package]] -name = "text-size" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "288cb548dbe72b652243ea797201f3d481a0609a967980fcc5b2315ea811560a" - -[[package]] -name = "tinyvec" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" - -[[package]] -name = "tracing" -version = "0.1.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09" -dependencies = [ - "cfg-if 1.0.0", - "pin-project-lite", - "tracing-attributes", - "tracing-core", -] - -[[package]] -name = "tracing-attributes" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "tracing-core" -version = "0.1.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f" -dependencies = [ - "lazy_static", -] - -[[package]] -name = "typed-arena" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0685c84d5d54d1c26f7d3eb96cd41550adb97baed141a761cf335d3d33bcd0ae" - -[[package]] -name = "unicase" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" -dependencies = [ - "version_check", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" - -[[package]] -name = "unicode-normalization" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "unicode-segmentation" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" - -[[package]] -name = "unicode-xid" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" - -[[package]] -name = "url" -version = "2.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" -dependencies = [ - "form_urlencoded", - "idna", - "matches", - "percent-encoding", -] - -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows-sys" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82ca39602d5cbfa692c4b67e3bcbb2751477355141c1ed434c94da4186836ff6" -dependencies = [ - "windows_aarch64_msvc 0.28.0", - "windows_i686_gnu 0.28.0", - "windows_i686_msvc 0.28.0", - "windows_x86_64_gnu 0.28.0", - "windows_x86_64_msvc 0.28.0", -] - -[[package]] -name = "windows-sys" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" -dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", -] - -[[package]] -name = "windows_aarch64_msvc" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52695a41e536859d5308cc613b4a022261a274390b25bd29dfff4bf08505f3c2" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" - -[[package]] -name = "windows_i686_gnu" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54725ac23affef038fecb177de6c9bf065787c2f432f79e3c373da92f3e1d8a" - -[[package]] -name = "windows_i686_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" - -[[package]] -name = "windows_i686_msvc" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d5158a43cc43623c0729d1ad6647e62fa384a3d135fd15108d37c683461f64" - -[[package]] -name = "windows_i686_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc31f409f565611535130cfe7ee8e6655d3fa99c1c61013981e491921b5ce954" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f2b8c7cbd3bfdddd9ab98769f9746a7fad1bca236554cd032b78d768bc0e89f" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" diff --git a/node-graph/Cargo.toml b/node-graph/Cargo.toml deleted file mode 100644 index 0b7d47bac..000000000 --- a/node-graph/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[workspace] - -members = [ - #"proc-macro", - "gcore", - "gstd", - "borrow_stack" -] diff --git a/node-graph/README.md b/node-graph/README.md deleted file mode 100644 index 0577998c4..000000000 --- a/node-graph/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# NodeGraphExperiments -Repo for testing ideas for the upcoming Graphite node graph implementation diff --git a/node-graph/dyn-any b/node-graph/dyn-any deleted file mode 160000 index c4933672d..000000000 --- a/node-graph/dyn-any +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c4933672deec310f1eeedf879ed36dcc1c1093bc diff --git a/node-graph/gcore/Cargo.toml b/node-graph/gcore/Cargo.toml index 96d096e29..56a539db5 100644 --- a/node-graph/gcore/Cargo.toml +++ b/node-graph/gcore/Cargo.toml @@ -2,7 +2,7 @@ name = "graphene-core" version = "0.1.0" edition = "2021" -description = "Api definitions for graphene" +description = "API definitions for Graphene" authors = ["Dennis Kobert "] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -15,7 +15,7 @@ async = ["async-trait"] nightly = [] [dependencies] -dyn-any = {path = "../dyn-any", features = ["derive"], optional = true} +dyn-any = {path = "../../libraries/dyn-any", features = ["derive"], optional = true} spirv-std = { git = "https://github.com/EmbarkStudios/rust-gpu", features = ["glam"] , optional = true} async-trait = {version = "0.1", optional = true} diff --git a/node-graph/gstd/Cargo.toml b/node-graph/gstd/Cargo.toml index 4574f1e8c..f1d44008c 100644 --- a/node-graph/gstd/Cargo.toml +++ b/node-graph/gstd/Cargo.toml @@ -18,7 +18,7 @@ default = ["derive", "memoization"] [dependencies] graphene-core = {path = "../gcore"} borrow_stack = {path = "../borrow_stack"} -dyn-any = {path = "../dyn-any", features = ["derive"]} +dyn-any = {path = "../../libraries/dyn-any", features = ["derive"]} graph-proc-macros = {path = "../proc-macro", optional = true} once_cell = {version= "1.10", optional = true} ide = { version = "*", package = "ra_ap_ide", optional = true }