this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

🚧 localhost requests work!!!!!

authored by

Gwenn Le Bihan and committed by
Gwen Le Bihan
b302acc0 09c06d08

+227 -16
+217 -14
Cargo.lock
··· 1 1 # This file is automatically @generated by Cargo. 2 2 # It is not intended for manual editing. 3 - version = 3 3 + version = 4 4 4 5 5 [[package]] 6 6 name = "addr2line" ··· 16 16 version = "1.0.2" 17 17 source = "registry+https://github.com/rust-lang/crates.io-index" 18 18 checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 19 + 20 + [[package]] 21 + name = "adler2" 22 + version = "2.0.0" 23 + source = "registry+https://github.com/rust-lang/crates.io-index" 24 + checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" 19 25 20 26 [[package]] 21 27 name = "aho-corasick" ··· 62 68 [[package]] 63 69 name = "assert_no_alloc" 64 70 version = "1.1.2" 65 - source = "git+https://github.com/robbert-vdh/rust-assert-no-alloc.git?branch=feature/nested-permit-forbid#a6fb4f62b9624715291e320ea5f0f70e73b035cf" 71 + source = "git+https://github.com/robbert-vdh/rust-assert-no-alloc.git?branch=feature%2Fnested-permit-forbid#a6fb4f62b9624715291e320ea5f0f70e73b035cf" 66 72 dependencies = [ 67 73 "backtrace", 68 74 "log", ··· 107 113 "cc", 108 114 "cfg-if", 109 115 "libc", 110 - "miniz_oxide", 116 + "miniz_oxide 0.7.2", 111 117 "object", 112 118 "rustc-demangle", 113 119 ] 114 120 115 121 [[package]] 122 + name = "base64" 123 + version = "0.22.1" 124 + source = "registry+https://github.com/rust-lang/crates.io-index" 125 + checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" 126 + 127 + [[package]] 116 128 name = "bitflags" 117 129 version = "1.3.2" 118 130 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 140 152 checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" 141 153 142 154 [[package]] 155 + name = "bytes" 156 + version = "1.10.0" 157 + source = "registry+https://github.com/rust-lang/crates.io-index" 158 + checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" 159 + 160 + [[package]] 143 161 name = "camino" 144 162 version = "1.1.9" 145 163 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 173 191 174 192 [[package]] 175 193 name = "cc" 176 - version = "1.0.96" 194 + version = "1.2.14" 177 195 source = "registry+https://github.com/rust-lang/crates.io-index" 178 - checksum = "065a29261d53ba54260972629f9ca6bffa69bac13cd1fed61420f7fa68b9f8bd" 196 + checksum = "0c3d1b2e905a3a7b00a6141adb0e4c0bb941d11caf55349d863942a1cc44e3c9" 197 + dependencies = [ 198 + "shlex", 199 + ] 179 200 180 201 [[package]] 181 202 name = "cfg-if" ··· 215 236 [[package]] 216 237 name = "clap-sys" 217 238 version = "0.3.0" 218 - source = "git+https://github.com/robbert-vdh/clap-sys.git?branch=feature/cstr-macro#523a5f8a8dd021ec99e7d6e0c0ebe7741a3da9d4" 239 + source = "git+https://github.com/robbert-vdh/clap-sys.git?branch=feature%2Fcstr-macro#523a5f8a8dd021ec99e7d6e0c0ebe7741a3da9d4" 219 240 220 241 [[package]] 221 242 name = "console" ··· 253 274 checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" 254 275 dependencies = [ 255 276 "libc", 277 + ] 278 + 279 + [[package]] 280 + name = "crc32fast" 281 + version = "1.4.2" 282 + source = "registry+https://github.com/rust-lang/crates.io-index" 283 + checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" 284 + dependencies = [ 285 + "cfg-if", 256 286 ] 257 287 258 288 [[package]] ··· 375 405 version = "1.0.2" 376 406 source = "registry+https://github.com/rust-lang/crates.io-index" 377 407 checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" 408 + 409 + [[package]] 410 + name = "flate2" 411 + version = "1.0.35" 412 + source = "registry+https://github.com/rust-lang/crates.io-index" 413 + checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" 414 + dependencies = [ 415 + "crc32fast", 416 + "miniz_oxide 0.8.4", 417 + ] 418 + 419 + [[package]] 420 + name = "fnv" 421 + version = "1.0.7" 422 + source = "registry+https://github.com/rust-lang/crates.io-index" 423 + checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 378 424 379 425 [[package]] 380 426 name = "generic-array" ··· 464 510 checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f" 465 511 466 512 [[package]] 513 + name = "http" 514 + version = "1.2.0" 515 + source = "registry+https://github.com/rust-lang/crates.io-index" 516 + checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" 517 + dependencies = [ 518 + "bytes", 519 + "fnv", 520 + "itoa", 521 + ] 522 + 523 + [[package]] 524 + name = "httparse" 525 + version = "1.10.0" 526 + source = "registry+https://github.com/rust-lang/crates.io-index" 527 + checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a" 528 + 529 + [[package]] 467 530 name = "httpdate" 468 531 version = "1.0.3" 469 532 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 556 619 557 620 [[package]] 558 621 name = "libc" 559 - version = "0.2.154" 622 + version = "0.2.169" 560 623 source = "registry+https://github.com/rust-lang/crates.io-index" 561 - checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346" 624 + checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 562 625 563 626 [[package]] 564 627 name = "lock_api" ··· 572 635 573 636 [[package]] 574 637 name = "log" 575 - version = "0.4.21" 638 + version = "0.4.25" 576 639 source = "registry+https://github.com/rust-lang/crates.io-index" 577 - checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" 640 + checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" 578 641 579 642 [[package]] 580 643 name = "malloc_buf" ··· 616 679 ] 617 680 618 681 [[package]] 682 + name = "miniz_oxide" 683 + version = "0.8.4" 684 + source = "registry+https://github.com/rust-lang/crates.io-index" 685 + checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" 686 + dependencies = [ 687 + "adler2", 688 + ] 689 + 690 + [[package]] 619 691 name = "nanoid" 620 692 version = "0.4.0" 621 693 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 768 840 "smallvec", 769 841 "windows-targets 0.52.5", 770 842 ] 843 + 844 + [[package]] 845 + name = "percent-encoding" 846 + version = "2.3.1" 847 + source = "registry+https://github.com/rust-lang/crates.io-index" 848 + checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 771 849 772 850 [[package]] 773 851 name = "pest" ··· 960 1038 checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" 961 1039 962 1040 [[package]] 1041 + name = "ring" 1042 + version = "0.17.9" 1043 + source = "registry+https://github.com/rust-lang/crates.io-index" 1044 + checksum = "e75ec5e92c4d8aede845126adc388046234541629e76029599ed35a003c7ed24" 1045 + dependencies = [ 1046 + "cc", 1047 + "cfg-if", 1048 + "getrandom", 1049 + "libc", 1050 + "untrusted", 1051 + "windows-sys", 1052 + ] 1053 + 1054 + [[package]] 963 1055 name = "roxmltree" 964 1056 version = "0.19.0" 965 1057 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 978 1070 checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" 979 1071 980 1072 [[package]] 1073 + name = "rustls" 1074 + version = "0.23.23" 1075 + source = "registry+https://github.com/rust-lang/crates.io-index" 1076 + checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395" 1077 + dependencies = [ 1078 + "log", 1079 + "once_cell", 1080 + "ring", 1081 + "rustls-pki-types", 1082 + "rustls-webpki", 1083 + "subtle", 1084 + "zeroize", 1085 + ] 1086 + 1087 + [[package]] 1088 + name = "rustls-pemfile" 1089 + version = "2.2.0" 1090 + source = "registry+https://github.com/rust-lang/crates.io-index" 1091 + checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" 1092 + dependencies = [ 1093 + "rustls-pki-types", 1094 + ] 1095 + 1096 + [[package]] 1097 + name = "rustls-pki-types" 1098 + version = "1.11.0" 1099 + source = "registry+https://github.com/rust-lang/crates.io-index" 1100 + checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" 1101 + 1102 + [[package]] 1103 + name = "rustls-webpki" 1104 + version = "0.102.8" 1105 + source = "registry+https://github.com/rust-lang/crates.io-index" 1106 + checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" 1107 + dependencies = [ 1108 + "ring", 1109 + "rustls-pki-types", 1110 + "untrusted", 1111 + ] 1112 + 1113 + [[package]] 981 1114 name = "rustversion" 982 1115 version = "1.0.15" 983 1116 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1115 1248 "strum_macros", 1116 1249 "svg", 1117 1250 "tiny_http", 1251 + "ureq", 1118 1252 "wasm-bindgen", 1119 1253 "web-sys", 1120 1254 ] 1255 + 1256 + [[package]] 1257 + name = "shlex" 1258 + version = "1.3.0" 1259 + source = "registry+https://github.com/rust-lang/crates.io-index" 1260 + checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1121 1261 1122 1262 [[package]] 1123 1263 name = "slug" ··· 1164 1304 ] 1165 1305 1166 1306 [[package]] 1307 + name = "subtle" 1308 + version = "2.6.1" 1309 + source = "registry+https://github.com/rust-lang/crates.io-index" 1310 + checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1311 + 1312 + [[package]] 1167 1313 name = "svg" 1168 1314 version = "0.17.0" 1169 1315 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1324 1470 checksum = "68f5e5f3158ecfd4b8ff6fe086db7c8467a2dfdac97fe420f2b7c4aa97af66d6" 1325 1471 1326 1472 [[package]] 1473 + name = "untrusted" 1474 + version = "0.9.0" 1475 + source = "registry+https://github.com/rust-lang/crates.io-index" 1476 + checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1477 + 1478 + [[package]] 1479 + name = "ureq" 1480 + version = "3.0.6" 1481 + source = "registry+https://github.com/rust-lang/crates.io-index" 1482 + checksum = "ca2e2dbdf4e95780e5d41804fab88b928a24585721018409eb429b1d29356bde" 1483 + dependencies = [ 1484 + "base64", 1485 + "flate2", 1486 + "log", 1487 + "percent-encoding", 1488 + "rustls", 1489 + "rustls-pemfile", 1490 + "rustls-pki-types", 1491 + "ureq-proto", 1492 + "utf-8", 1493 + "webpki-roots", 1494 + ] 1495 + 1496 + [[package]] 1497 + name = "ureq-proto" 1498 + version = "0.3.0" 1499 + source = "registry+https://github.com/rust-lang/crates.io-index" 1500 + checksum = "2c51fe73e1d8c4e06bb2698286f7e7453c6fc90528d6d2e7fc36bb4e87fe09b1" 1501 + dependencies = [ 1502 + "base64", 1503 + "http", 1504 + "httparse", 1505 + "log", 1506 + ] 1507 + 1508 + [[package]] 1509 + name = "utf-8" 1510 + version = "0.7.6" 1511 + source = "registry+https://github.com/rust-lang/crates.io-index" 1512 + checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" 1513 + 1514 + [[package]] 1327 1515 name = "version_check" 1328 1516 version = "0.9.4" 1329 1517 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1332 1520 [[package]] 1333 1521 name = "vst3-com" 1334 1522 version = "0.1.0" 1335 - source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/drop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1523 + source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix%2Fdrop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1336 1524 dependencies = [ 1337 1525 "vst3-com-macros", 1338 1526 ] ··· 1340 1528 [[package]] 1341 1529 name = "vst3-com-macros" 1342 1530 version = "0.2.0" 1343 - source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/drop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1531 + source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix%2Fdrop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1344 1532 dependencies = [ 1345 1533 "proc-macro2", 1346 1534 "quote", ··· 1351 1539 [[package]] 1352 1540 name = "vst3-com-macros-support" 1353 1541 version = "0.2.0" 1354 - source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/drop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1542 + source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix%2Fdrop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1355 1543 dependencies = [ 1356 1544 "proc-macro2", 1357 1545 "quote", ··· 1361 1549 [[package]] 1362 1550 name = "vst3-sys" 1363 1551 version = "0.1.0" 1364 - source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix/drop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1552 + source = "git+https://github.com/robbert-vdh/vst3-sys.git?branch=fix%2Fdrop-box-from-raw#b3ff4d775940f5b476b9d1cca02a90e07e1922a2" 1365 1553 dependencies = [ 1366 1554 "vst3-com", 1367 1555 ] ··· 1434 1622 dependencies = [ 1435 1623 "js-sys", 1436 1624 "wasm-bindgen", 1625 + ] 1626 + 1627 + [[package]] 1628 + name = "webpki-roots" 1629 + version = "0.26.8" 1630 + source = "registry+https://github.com/rust-lang/crates.io-index" 1631 + checksum = "2210b291f7ea53617fbafcc4939f10914214ec15aace5ba62293a668f322c5c9" 1632 + dependencies = [ 1633 + "rustls-pki-types", 1437 1634 ] 1438 1635 1439 1636 [[package]] ··· 1636 1833 dependencies = [ 1637 1834 "nih_plug_xtask", 1638 1835 ] 1836 + 1837 + [[package]] 1838 + name = "zeroize" 1839 + version = "1.8.1" 1840 + source = "registry+https://github.com/rust-lang/crates.io-index" 1841 + checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
+1
Cargo.toml
··· 55 55 roxmltree = "0.19.0" 56 56 strum = { version = "0.26.2", features = ["strum_macros"] } 57 57 strum_macros = "0.26.2" 58 + ureq = "3.0.6" 58 59 59 60 60 61 [dev-dependencies]
+4
Justfile
··· 4 4 cargo build --bin shapemaker 5 5 cp target/debug/shapemaker . 6 6 7 + vst: 8 + cargo xtask bundle shapemaker --release 9 + gsudo cp "target/bundled/Shapemaker VST.vst3/Contents/x86_64-win/Shapemaker VST.vst3" "C:/Program Files/Common Files/VST3/Shapemaker VST.vst3" 10 + 7 11 web: 8 12 wasm-pack build --target web -d web 9 13 echo "" >> web/.gitignore
+5 -2
src/vst.rs
··· 1 1 use nih_plug::prelude::*; 2 2 use std::sync::Arc; 3 + use ureq; 3 4 4 5 // This is a shortened version of the gain example with most comments removed, check out 5 6 // https://github.com/robbert-vdh/nih-plug/blob/master/plugins/examples/gain/src/lib.rs to get ··· 80 81 names: PortNames::const_default(), 81 82 }]; 82 83 83 - 84 84 const MIDI_INPUT: MidiConfig = MidiConfig::None; 85 85 const MIDI_OUTPUT: MidiConfig = MidiConfig::None; 86 86 ··· 108 108 // Resize buffers and perform other potentially expensive initialization operations here. 109 109 // The `reset()` function is always called right after this function. You can remove this 110 110 // function if you do not need it. 111 + // Make a debug request to localhost:8080 112 + let _ = ureq::get("http://localhost:8080/haiiiii").call(); 111 113 true 112 114 } 113 115 ··· 137 139 138 140 impl ClapPlugin for ShapemakerVST { 139 141 const CLAP_ID: &'static str = "works.gwen.shapemakervst"; 140 - const CLAP_DESCRIPTION: Option<&'static str> = Some("A VST plugin for Shapemaker, an experimental audiovisual SVG-based rendering engine"); 142 + const CLAP_DESCRIPTION: Option<&'static str> = 143 + Some("A VST plugin for Shapemaker, an experimental audiovisual SVG-based rendering engine"); 141 144 const CLAP_MANUAL_URL: Option<&'static str> = Some(Self::URL); 142 145 const CLAP_SUPPORT_URL: Option<&'static str> = None; 143 146