Compare commits
No commits in common. "8d8c430c6aba01b80a4b21ebf5af88f6259eb9e9" and "420645983fe4acdcd9f5f72814c966daebd0cb92" have entirely different histories.
8d8c430c6a
...
420645983f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
target/
|
||||
/target
|
||||
|
@ -121,6 +121,6 @@ Now you will get a warning saying that dependencies aren't aligned.
|
||||
### Todos
|
||||
|
||||
- [ ] Proof of concepts
|
||||
- [x] Split rust bins, interfacing
|
||||
- [ ] Split rust bins, interfacing
|
||||
- [ ] Plugins json schema
|
||||
- [ ] Schema generation
|
||||
|
535
pocs/split_bins/Cargo.lock
generated
535
pocs/split_bins/Cargo.lock
generated
@ -1,535 +0,0 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "addr2line"
|
||||
version = "0.17.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b"
|
||||
dependencies = [
|
||||
"gimli",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "adler"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
||||
|
||||
[[package]]
|
||||
name = "anyhow"
|
||||
version = "1.0.62"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1485d4d2cc45e7b201ee3767015c96faa5904387c9d87c6efdd0fb511f12d305"
|
||||
dependencies = [
|
||||
"backtrace",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "autocfg"
|
||||
version = "1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
||||
|
||||
[[package]]
|
||||
name = "backtrace"
|
||||
version = "0.3.66"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7"
|
||||
dependencies = [
|
||||
"addr2line",
|
||||
"cc",
|
||||
"cfg-if 1.0.0",
|
||||
"libc",
|
||||
"miniz_oxide",
|
||||
"object",
|
||||
"rustc-demangle",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bincode"
|
||||
version = "1.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bitflags"
|
||||
version = "1.3.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
||||
|
||||
[[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 = "crossbeam-channel"
|
||||
version = "0.4.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87"
|
||||
dependencies = [
|
||||
"crossbeam-utils",
|
||||
"maybe-uninit",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossbeam-utils"
|
||||
version = "0.7.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"cfg-if 0.1.10",
|
||||
"lazy_static",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fastrand"
|
||||
version = "1.8.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499"
|
||||
dependencies = [
|
||||
"instant",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fnv"
|
||||
version = "1.0.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
||||
|
||||
[[package]]
|
||||
name = "fuchsia-zircon"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"fuchsia-zircon-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fuchsia-zircon-sys"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
|
||||
|
||||
[[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 0.9.0+wasi-snapshot-preview1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "getrandom"
|
||||
version = "0.2.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"libc",
|
||||
"wasi 0.11.0+wasi-snapshot-preview1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gimli"
|
||||
version = "0.26.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d"
|
||||
|
||||
[[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 = "iovec"
|
||||
version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ipc-channel"
|
||||
version = "0.16.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7cb1d9211085f0ea6f1379d944b93c4d07e8207aa3bcf49f37eda12b85081887"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"crossbeam-channel",
|
||||
"fnv",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"mio",
|
||||
"rand",
|
||||
"serde",
|
||||
"tempfile",
|
||||
"uuid",
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "kernel32-sys"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
|
||||
dependencies = [
|
||||
"winapi 0.2.8",
|
||||
"winapi-build",
|
||||
]
|
||||
|
||||
[[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.132"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5"
|
||||
|
||||
[[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 = "maybe-uninit"
|
||||
version = "2.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
||||
|
||||
[[package]]
|
||||
name = "miniz_oxide"
|
||||
version = "0.5.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc"
|
||||
dependencies = [
|
||||
"adler",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "mio"
|
||||
version = "0.6.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
|
||||
dependencies = [
|
||||
"cfg-if 0.1.10",
|
||||
"fuchsia-zircon",
|
||||
"fuchsia-zircon-sys",
|
||||
"iovec",
|
||||
"kernel32-sys",
|
||||
"libc",
|
||||
"log",
|
||||
"miow",
|
||||
"net2",
|
||||
"slab",
|
||||
"winapi 0.2.8",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "miow"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
|
||||
dependencies = [
|
||||
"kernel32-sys",
|
||||
"net2",
|
||||
"winapi 0.2.8",
|
||||
"ws2_32-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "net2"
|
||||
version = "0.2.37"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae"
|
||||
dependencies = [
|
||||
"cfg-if 0.1.10",
|
||||
"libc",
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "object"
|
||||
version = "0.29.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ppv-lite86"
|
||||
version = "0.2.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.43"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab"
|
||||
dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "quote"
|
||||
version = "1.0.21"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand"
|
||||
version = "0.7.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
|
||||
dependencies = [
|
||||
"getrandom 0.1.16",
|
||||
"libc",
|
||||
"rand_chacha",
|
||||
"rand_core",
|
||||
"rand_hc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand_chacha"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
|
||||
dependencies = [
|
||||
"ppv-lite86",
|
||||
"rand_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand_core"
|
||||
version = "0.5.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
||||
dependencies = [
|
||||
"getrandom 0.1.16",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand_hc"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
|
||||
dependencies = [
|
||||
"rand_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redox_syscall"
|
||||
version = "0.2.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "remove_dir_all"
|
||||
version = "0.5.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
|
||||
dependencies = [
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustc-demangle"
|
||||
version = "0.1.21"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.143"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.143"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d3d8e8de557aee63c26b85b947f5e59b690d0454c753f3adeb5cd7835ab88391"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "slab"
|
||||
version = "0.4.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "split_bins_cli"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"ipc-channel",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "split_bins_plugin"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"ipc-channel",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "split_bins_plugin_two"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "1.0.99"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tempfile"
|
||||
version = "3.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"fastrand",
|
||||
"libc",
|
||||
"redox_syscall",
|
||||
"remove_dir_all",
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-ident"
|
||||
version = "1.0.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf"
|
||||
|
||||
[[package]]
|
||||
name = "uuid"
|
||||
version = "0.8.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
|
||||
dependencies = [
|
||||
"getrandom 0.2.7",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wasi"
|
||||
version = "0.9.0+wasi-snapshot-preview1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
|
||||
|
||||
[[package]]
|
||||
name = "wasi"
|
||||
version = "0.11.0+wasi-snapshot-preview1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.2.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
|
||||
|
||||
[[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-build"
|
||||
version = "0.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
||||
|
||||
[[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 = "ws2_32-sys"
|
||||
version = "0.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
|
||||
dependencies = [
|
||||
"winapi 0.2.8",
|
||||
"winapi-build",
|
||||
]
|
@ -1,6 +0,0 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"split_bins_cli",
|
||||
"split_bins_plugin",
|
||||
"split_bins_plugin_two"
|
||||
]
|
@ -1,11 +0,0 @@
|
||||
[package]
|
||||
name = "split_bins_cli"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
anyhow = { version = "1.0.62", features = ["backtrace"] }
|
||||
ipc-channel = "0.16.0"
|
||||
serde = { version = "1.0.143", features = ["derive"] }
|
@ -1,48 +0,0 @@
|
||||
use std::process::Command;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
println!("Hello, split_bins!");
|
||||
|
||||
println!("startup processes");
|
||||
|
||||
let executables = vec!["split_bins_plugin"]; //, "split_bins_plugin_two"];
|
||||
|
||||
let current_exe_path: String = get_current_exe_path()?;
|
||||
|
||||
let mut handles = vec![];
|
||||
for exe in executables {
|
||||
let curr_exe_path = current_exe_path.clone();
|
||||
let e = exe.clone();
|
||||
|
||||
handles.push(std::thread::spawn(move || {
|
||||
println!("current exe path: {}", curr_exe_path);
|
||||
let (server, name) =
|
||||
ipc_channel::ipc::IpcOneShotServer::new().expect("could not create oneshot server");
|
||||
|
||||
let mut child = Command::new(format!("{}/{}", curr_exe_path, e))
|
||||
.arg(format!("{}", name.clone()))
|
||||
.spawn()
|
||||
.expect(format!("started process: {}", curr_exe_path).as_str());
|
||||
|
||||
let (_, tx): (_, ipc_channel::ipc::IpcSender<String>) = server.accept().unwrap();
|
||||
tx.send("some msg".into()).expect("could not send message");
|
||||
|
||||
child.wait().expect("did not finish with 0");
|
||||
}));
|
||||
}
|
||||
|
||||
for handle in handles {
|
||||
if let Err(_) = handle.join() {
|
||||
return Err(anyhow::anyhow!("handle failed to return with statuscode=0"));
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn get_current_exe_path() -> anyhow::Result<String> {
|
||||
let mut current_exe_path = std::env::current_exe()?;
|
||||
current_exe_path.pop();
|
||||
|
||||
return Ok(current_exe_path.to_string_lossy().to_string());
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
[package]
|
||||
name = "split_bins_plugin"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
ipc-channel = "0.16.0"
|
@ -1,17 +0,0 @@
|
||||
fn main() {
|
||||
println!("Hello, split_bins_plugin!");
|
||||
|
||||
let args = std::env::args();
|
||||
|
||||
let exe_name = args.last().expect("could not get last item");
|
||||
|
||||
let (tx, rx) = ipc_channel::ipc::channel::<String>().expect("could not open channel");
|
||||
|
||||
let tx0 = ipc_channel::ipc::IpcSender::connect(exe_name.to_string())
|
||||
.expect("could not connect to server");
|
||||
|
||||
tx0.send(tx).expect("could not send tx");
|
||||
let msg = rx.recv().expect("could not receive message");
|
||||
|
||||
println!("msg: {}", msg)
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
[package]
|
||||
name = "split_bins_plugin_two"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
@ -1,3 +0,0 @@
|
||||
fn main() {
|
||||
println!("Hello, split_bins_plugin_two!");
|
||||
}
|
@ -1 +0,0 @@
|
||||
{"rustc_fingerprint":17740434842047723094,"outputs":{"15697416045686424142":{"success":false,"status":"exit status: 1","code":1,"stdout":"","stderr":"error: `-Csplit-debuginfo` is unstable on this platform\n\n"},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.62.1 (e092d0b6b 2022-07-16)\nbinary: rustc\ncommit-hash: e092d0b6b43f2de967af0887873151bb1c0b18d3\ncommit-date: 2022-07-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.62.1\nLLVM version: 14.0.5\n","stderr":""},"10376369925670944939":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/kjuulh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
|
@ -1,3 +0,0 @@
|
||||
Signature: 8a477f597d28d172789f06886806bc55
|
||||
# This file is a cache directory tag created by cargo.
|
||||
# For information about cache directory tags see https://bford.info/cachedir/
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
27b00ce0d54305ae
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":5058954644684423156,"profile":3735503092003429423,"path":12266238285658396550,"deps":[[9658517692633155478,"gimli",false,4236007738870957060]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/addr2line-5edd8352fab8b623/dep-lib-addr2line"}}],"rustflags":[],"metadata":12740932805375460336,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
4a3e8b08113256be
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":5058954644684423156,"profile":12637318739757120569,"path":12266238285658396550,"deps":[[9658517692633155478,"gimli",false,2858318697542997580]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/addr2line-615a43ddc5060825/dep-lib-addr2line"}}],"rustflags":[],"metadata":12740932805375460336,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
6798da4a7b20cb41
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":17946092562950227216,"profile":3735503092003429423,"path":10330461673402035295,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/adler-59f60143c39b3c1b/dep-lib-adler"}}],"rustflags":[],"metadata":10673633425720882208,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
dd18f3b9fca84f16
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":17946092562950227216,"profile":12637318739757120569,"path":10330461673402035295,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/adler-683ef9f28eb63845/dep-lib-adler"}}],"rustflags":[],"metadata":10673633425720882208,"config":2202906307356721367,"compile_kind":0}
|
@ -1 +0,0 @@
|
||||
cc44592c16cf5f19
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"","target":0,"profile":0,"path":0,"deps":[[15734316073868260853,"build_script_build",false,13128505353096503981]],"local":[{"Precalculated":"1.0.62"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
3bf6b2ba95935af7
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"backtrace\", \"default\", \"std\"]","target":14329522133745486467,"profile":12637318739757120569,"path":16731703501417297216,"deps":[[8803529298853814849,"backtrace",false,5249373197672548100],[15734316073868260853,"build_script_build",false,1828407667875988684]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/anyhow-647a6c7cea260796/dep-lib-anyhow"}}],"rustflags":[],"metadata":17154292783084528516,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
5ec5382bcd2e18cc
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"backtrace\", \"default\", \"std\"]","target":14329522133745486467,"profile":3735503092003429423,"path":16731703501417297216,"deps":[[8803529298853814849,"backtrace",false,9780921932033928746],[15734316073868260853,"build_script_build",false,1828407667875988684]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/anyhow-77fba15e3e09a543/dep-lib-anyhow"}}],"rustflags":[],"metadata":17154292783084528516,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
75ecabd8bdda1723
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"backtrace\", \"default\", \"std\"]","target":14329522133745486467,"profile":12637318739757120569,"path":16731703501417297216,"deps":[[8803529298853814849,"backtrace",false,10282981442635231453],[15734316073868260853,"build_script_build",false,1828407667875988684]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/anyhow-78941e9d173ab256/dep-lib-anyhow"}}],"rustflags":[],"metadata":17154292783084528516,"config":2202906307356721367,"compile_kind":0}
|
@ -1 +0,0 @@
|
||||
ada221930fd231b6
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"backtrace\", \"default\", \"std\"]","target":13294766831966498538,"profile":12637318739757120569,"path":11795510013827999207,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/anyhow-d7fbab5443627128/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":17154292783084528516,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
825c4e8d467bfb74
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"backtrace\", \"default\", \"std\"]","target":14329522133745486467,"profile":3735503092003429423,"path":16731703501417297216,"deps":[[8803529298853814849,"backtrace",false,3631224717563625794],[15734316073868260853,"build_script_build",false,1828407667875988684]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/anyhow-da67567973cfe9d2/dep-lib-anyhow"}}],"rustflags":[],"metadata":17154292783084528516,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
f735e606a08fb9a5
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":10236397793970852656,"profile":12637318739757120569,"path":12964970385202135583,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/autocfg-8196867e0b9e6ea0/dep-lib-autocfg"}}],"rustflags":[],"metadata":13102859075309379048,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
4281ff3da4b36432
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"default\", \"std\"]","target":18222607620431226260,"profile":3735503092003429423,"path":10693255139985884362,"deps":[[1029747400312865259,"libc",false,1315661818733828676],[2452538001284770427,"cfg_if",false,14441256342332333001],[4010106834023749381,"object",false,6364078952868883261],[8803529298853814849,"build_script_build",false,12672323496636632643],[9848698660919851199,"miniz_oxide",false,2192546813463745715],[11143999024690331725,"rustc_demangle",false,14695605612137433857],[15333409936489148808,"addr2line",false,12539503323349037095]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/backtrace-21f6e7e0d520cb68/dep-lib-backtrace"}}],"rustflags":[],"metadata":7223263141473362705,"config":2202906307356721367,"compile_kind":0}
|
@ -1 +0,0 @@
|
||||
43cedc4f1423ddaf
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"","target":0,"profile":0,"path":0,"deps":[[8803529298853814849,"build_script_build",false,11047312282833804564]],"local":[{"Precalculated":"0.3.66"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
ddf034f8237db48e
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"default\", \"std\"]","target":18222607620431226260,"profile":12637318739757120569,"path":10693255139985884362,"deps":[[1029747400312865259,"libc",false,10505312623901046463],[2452538001284770427,"cfg_if",false,15282276556881539100],[4010106834023749381,"object",false,3923108957888740486],[8803529298853814849,"build_script_build",false,12672323496636632643],[9848698660919851199,"miniz_oxide",false,16610149762187114457],[11143999024690331725,"rustc_demangle",false,10058207815912175702],[15333409936489148808,"addr2line",false,13715204763942600266]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/backtrace-90f5b3d1277b1b94/dep-lib-backtrace"}}],"rustflags":[],"metadata":7223263141473362705,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
2aaeb5f6acd0bc87
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"default\", \"std\"]","target":18222607620431226260,"profile":3735503092003429423,"path":10693255139985884362,"deps":[[1029747400312865259,"libc",false,411165214120471751],[2452538001284770427,"cfg_if",false,14441256342332333001],[4010106834023749381,"object",false,6364078952868883261],[8803529298853814849,"build_script_build",false,12672323496636632643],[9848698660919851199,"miniz_oxide",false,2192546813463745715],[11143999024690331725,"rustc_demangle",false,14695605612137433857],[15333409936489148808,"addr2line",false,12539503323349037095]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/backtrace-ad58c4b74e69a8fd/dep-lib-backtrace"}}],"rustflags":[],"metadata":7223263141473362705,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
0487ba641c85d948
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"default\", \"std\"]","target":18222607620431226260,"profile":12637318739757120569,"path":10693255139985884362,"deps":[[1029747400312865259,"libc",false,18182332525630935685],[2452538001284770427,"cfg_if",false,15282276556881539100],[4010106834023749381,"object",false,3923108957888740486],[8803529298853814849,"build_script_build",false,12672323496636632643],[9848698660919851199,"miniz_oxide",false,16610149762187114457],[11143999024690331725,"rustc_demangle",false,10058207815912175702],[15333409936489148808,"addr2line",false,13715204763942600266]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/backtrace-c339f2b71f60dcab/dep-lib-backtrace"}}],"rustflags":[],"metadata":7223263141473362705,"config":2202906307356721367,"compile_kind":0}
|
@ -1 +0,0 @@
|
||||
145d1e75fdef4f99
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[\"default\", \"std\"]","target":13294766831966498538,"profile":12637318739757120569,"path":5832086951584381674,"deps":[[5019880723470237578,"cc",false,16824034640717112771]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/backtrace-e0b0b9c3647f4526/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":7223263141473362705,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
f79dc88f62ce0ccb
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":17413867883071742746,"profile":3735503092003429423,"path":2944314600793712021,"deps":[[14036285059816747405,"serde",false,13899475040311701310]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bincode-9de2286a1fe54de6/dep-lib-bincode"}}],"rustflags":[],"metadata":8466748156696077862,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
54daf11ad2540f7f
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":17413867883071742746,"profile":3735503092003429423,"path":2944314600793712021,"deps":[[14036285059816747405,"serde",false,12586296976822864139]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bincode-accaf6bb1113e7bf/dep-lib-bincode"}}],"rustflags":[],"metadata":8466748156696077862,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
93d006757f8c3a00
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":17413867883071742746,"profile":12637318739757120569,"path":2944314600793712021,"deps":[[14036285059816747405,"serde",false,8341171683740774345]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bincode-e02741c46a0df2f2/dep-lib-bincode"}}],"rustflags":[],"metadata":8466748156696077862,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
c365cf405efa7ae9
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":2793076990717341772,"profile":12637318739757120569,"path":12239952830730046412,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cc-670041c26ce3b88f/dep-lib-cc"}}],"rustflags":[],"metadata":16504835547841594983,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
feb2c9d448f86b8b
|
@ -1 +0,0 @@
|
||||
{"rustc":14997152855509374802,"features":"[]","target":10094334937643343087,"profile":12637318739757120569,"path":11948262164500603080,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cfg-if-54b9c4b6dd239d91/dep-lib-cfg-if"}}],"rustflags":[],"metadata":8462187951337715540,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
This file has an mtime of when this was started.
|
@ -1 +0,0 @@
|
||||
c95b135b21a669c8
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user