From 1250891cd6636c47e04f290b1865a2c4fcaa9aa2 Mon Sep 17 00:00:00 2001 From: tiye Date: Sat, 11 Nov 2023 01:40:40 +0800 Subject: [PATCH] update snapshot format; upgrade deps; tag 0.0.2 --- .github/workflows/check.yaml | 27 +- .rustfmt.toml | 3 + Cargo.lock | 856 +++++++++-------------------------- Cargo.toml | 10 +- build.sh | 1 + calcit.cirru | 330 +++++++------- compact.cirru | 84 ++-- 7 files changed, 447 insertions(+), 864 deletions(-) create mode 100644 .rustfmt.toml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 4303c33..2eabdf4 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -11,27 +11,30 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: ACTIONS_ALLOW_UNSECURE_COMMANDS - id: ACTIONS_ALLOW_UNSECURE_COMMANDS - run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV + - uses: supplypike/setup-bin@v3 + with: + uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/cr' + name: 'cr' + version: '0.8.9' - - name: add cr - run: | - mkdir -p $GITHUB_WORKSPACE/bin - wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.1/cr - chmod +x $GITHUB_WORKSPACE/bin/cr - echo "::add-path::$GITHUB_WORKSPACE/bin" + - uses: supplypike/setup-bin@v3 + with: + uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/caps' + name: 'caps' + version: '0.8.9' - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable + - uses: Swatinem/rust-cache@v2 + - run: sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev - run: cargo build --release - run: mkdir dylibs/ && ls target/release/ && cp -v target/release/*.* dylibs/ - # - run: cr -1 + - run: cr --emit-ir -1 diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..79bf0b7 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,3 @@ + +max_width = 136 +tab_spaces = 2 diff --git a/Cargo.lock b/Cargo.lock index 0d81498..8529750 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,47 +2,6 @@ # 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 = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - -[[package]] -name = "anyhow" -version = "1.0.51" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b26702f315f53b6071259e15dd9d64528213b44d61de1ec926eca7715d62203" - -[[package]] -name = "atty" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a7d5b8723950951411ee34d271d99dddcc2035a16ab25310ea2c8cfd4369652" -dependencies = [ - "libc", - "termion", - "winapi", -] - [[package]] name = "autocfg" version = "1.0.1" @@ -50,25 +9,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] -name = "backtrace" -version = "0.3.63" +name = "bitflags" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6" -dependencies = [ - "addr2line", - "cc", - "cfg-if 1.0.0", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", -] +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "1.3.2" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" [[package]] name = "block" @@ -77,16 +27,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" [[package]] -name = "cc" -version = "1.0.72" +name = "bytecount" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" +checksum = "e1e5f035d16fc623ae5f74981db80a439803888314e3a555fd6f04acd51a3205" [[package]] name = "cfg-if" @@ -94,61 +38,30 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chrono" -version = "0.4.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" -dependencies = [ - "libc", - "num-integer", - "num-traits", - "time", - "winapi", -] - [[package]] name = "cirru_edn" -version = "0.2.20" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c630ba3df67b903603c4daeeaceea2de2fa99c9da93e8a69f42f33c37d66ebd" +checksum = "8a35d38ee59f7409023f9dee361dc98760f33c9ad1f21283e536939d9561ed44" dependencies = [ "cirru_parser", "hex", - "lazy_static 1.4.0", + "lazy_static", ] [[package]] name = "cirru_parser" -version = "0.1.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db57e13c5181e48b287fbb5f6c8652b23c8bb30ffdc8cf63772c0fe17279f8b8" - -[[package]] -name = "clap" -version = "2.34.0" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" -dependencies = [ - "ansi_term", - "atty", - "bitflags", - "strsim", - "term_size", - "textwrap", - "unicode-width", - "vec_map", -] +checksum = "1297388204c9d3c72d1cafea80682fd6384e79c66dfe980460886bff7387e684" [[package]] name = "cli-clipboard" -version = "0.2.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40debc19e73992ef303534cce81b963a3706e54ae2f27ae2c136cdc6fe735232" +checksum = "04087c1d4a2aa259784a563932aee09cbb0869d490775e051096174b070f3e3d" dependencies = [ - "anyhow", "clipboard-win", - "failure", "objc", "objc-foundation", "objc_id", @@ -158,7 +71,7 @@ dependencies = [ [[package]] name = "clipboard" -version = "0.0.1" +version = "0.0.2" dependencies = [ "cirru_edn", "cirru_parser", @@ -167,30 +80,15 @@ dependencies = [ [[package]] name = "clipboard-win" -version = "4.2.2" +version = "4.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3db8340083d28acb43451166543b98c838299b7e0863621be53a338adceea0ed" +checksum = "7191c27c2357d9b7ef96baac1773290d4ca63b24205b82a3fd8a0637afcf0362" dependencies = [ "error-code", "str-buf", "winapi", ] -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags", -] - -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - [[package]] name = "derive-new" version = "0.5.9" @@ -202,19 +100,6 @@ dependencies = [ "syn", ] -[[package]] -name = "derive_more" -version = "0.99.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" -dependencies = [ - "convert_case", - "proc-macro2", - "quote", - "rustc_version", - "syn", -] - [[package]] name = "downcast-rs" version = "1.2.0" @@ -222,51 +107,42 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] -name = "error-code" -version = "2.3.0" +name = "equivalent" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5115567ac25674e0043e472be13d14e537f37ea8aa4bdc4aef0c89add1db1ff" -dependencies = [ - "libc", - "str-buf", -] +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] -name = "exitfailure" -version = "0.5.1" +name = "errno" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ff5bd832af37f366c6c194d813a11cd90ac484f124f079294f28e357ae40515" +checksum = "7c18ee0ed65a5f1f81cac6b1d213b69c35fa47d4252ad41f1486dbd8226fe36e" dependencies = [ - "failure", + "libc", + "windows-sys", ] [[package]] -name = "failure" -version = "0.1.8" +name = "error-code" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86" +checksum = "b5115567ac25674e0043e472be13d14e537f37ea8aa4bdc4aef0c89add1db1ff" dependencies = [ - "backtrace", - "failure_derive", + "libc", + "str-buf", ] [[package]] -name = "failure_derive" -version = "0.1.8" +name = "fastrand" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "synstructure", -] +checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "fixedbitset" -version = "0.2.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "fnv" @@ -275,36 +151,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] -name = "getrandom" +name = "gethostname" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" +checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" dependencies = [ - "cfg-if 1.0.0", "libc", - "wasi", + "winapi", ] -[[package]] -name = "gimli" -version = "0.26.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4" - [[package]] name = "hashbrown" -version = "0.11.2" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" - -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] +checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" [[package]] name = "hex" @@ -314,20 +174,14 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "indexmap" -version = "1.7.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" +checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ - "autocfg", + "equivalent", "hashbrown", ] -[[package]] -name = "lazy_static" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73" - [[package]] name = "lazy_static" version = "1.4.0" @@ -336,18 +190,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.109" +version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98a04dce437184842841303488f70d0188c5f51437d2a834dc097eafa909a01" +checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] -name = "lock_api" -version = "0.3.4" +name = "linux-raw-sys" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" -dependencies = [ - "scopeguard", -] +checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" [[package]] name = "log" @@ -355,7 +206,7 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -367,15 +218,6 @@ dependencies = [ "libc", ] -[[package]] -name = "memchr" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "148fab2e51b4f1cfc66da2a7c32981d1d3c083a803978268bb11fe4b86925e7a" -dependencies = [ - "libc", -] - [[package]] name = "memchr" version = "2.4.1" @@ -383,90 +225,42 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] -name = "mime" -version = "0.3.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" - -[[package]] -name = "mime_guess" -version = "2.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212" -dependencies = [ - "mime", - "unicase", -] - -[[package]] -name = "miniz_oxide" -version = "0.4.4" +name = "memoffset" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" +checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" dependencies = [ - "adler", "autocfg", ] [[package]] -name = "nix" -version = "0.17.0" +name = "minimal-lexical" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50e4785f2c3b7589a0d0c1dd60285e1188adac4006e8abd6dd578e1567027363" -dependencies = [ - "bitflags", - "cc", - "cfg-if 0.1.10", - "libc", - "void", -] +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "nix" -version = "0.18.0" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83450fe6a6142ddd95fb064b746083fc4ef1705fe81f64a64e1d4b39f54a1055" +checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ - "bitflags", - "cc", - "cfg-if 0.1.10", + "bitflags 1.3.2", + "cfg-if", "libc", + "memoffset", ] [[package]] name = "nom" -version = "3.2.1" +version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05aec50c70fd288702bcd93284a8444607f3292dbdf2a30de5ea5dcdbe72287b" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ - "memchr 1.0.2", + "memchr", + "minimal-lexical", ] -[[package]] -name = "num-integer" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" -dependencies = [ - "autocfg", - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" -dependencies = [ - "autocfg", -] - -[[package]] -name = "numtoa" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8f8bdf33df195859076e54ab11ee78a1b208382d3a26ec40d142ffc1ecc49ef" - [[package]] name = "objc" version = "0.2.7" @@ -496,15 +290,6 @@ dependencies = [ "objc", ] -[[package]] -name = "object" -version = "0.27.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9" -dependencies = [ - "memchr 2.4.1", -] - [[package]] name = "once_cell" version = "1.8.0" @@ -513,43 +298,19 @@ checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" [[package]] name = "os_pipe" -version = "0.9.2" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb233f06c2307e1f5ce2ecad9f8121cffbbee2c95428f44ea85222e460d0d213" +checksum = "0ae859aa07428ca9a929b936690f8b12dc5f11dd8c6992a18ca93919f28bc177" dependencies = [ "libc", - "winapi", -] - -[[package]] -name = "parking_lot" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3" -dependencies = [ - "cfg-if 0.1.10", - "cloudabi", - "libc", - "redox_syscall 0.1.57", - "smallvec", - "winapi", + "windows-sys", ] [[package]] name = "petgraph" -version = "0.5.1" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" +checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", "indexmap", @@ -561,36 +322,6 @@ version = "0.3.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "12295df4f294471248581bc09bef3c38a5e46f1e36d6a37353621a0c6c357e1f" -[[package]] -name = "ppv-lite86" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba" - -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - [[package]] name = "proc-macro2" version = "1.0.32" @@ -600,15 +331,6 @@ dependencies = [ "unicode-xid", ] -[[package]] -name = "quick-xml" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8533f14c8382aaad0d592c812ac3b826162128b65662331e1127b45c3d18536b" -dependencies = [ - "memchr 2.4.1", -] - [[package]] name = "quote" version = "1.0.10" @@ -618,161 +340,40 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "rand" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" -dependencies = [ - "libc", - "rand_chacha", - "rand_core", - "rand_hc", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" -dependencies = [ - "getrandom", -] - -[[package]] -name = "rand_hc" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" -dependencies = [ - "rand_core", -] - -[[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.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" -dependencies = [ - "bitflags", -] - -[[package]] -name = "redox_termios" -version = "0.1.2" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8440d8acb4fd3d277125b4bd01a6f38aee8d814b3b5fc09b3f2b825d37d3fe8f" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ - "redox_syscall 0.2.10", + "bitflags 1.3.2", ] [[package]] -name = "remove_dir_all" -version = "0.5.3" +name = "rustix" +version = "0.38.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" +checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3" dependencies = [ - "winapi", -] - -[[package]] -name = "rustc-demangle" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" - -[[package]] -name = "rustc_version" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", + "bitflags 2.4.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", ] -[[package]] -name = "scopeguard" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" - -[[package]] -name = "semver" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" - [[package]] name = "smallvec" version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309" -[[package]] -name = "stderrlog" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e5ee9b90a5452c570a0b0ac1c99ae9498db7e56e33d74366de7f2a7add7f25" -dependencies = [ - "atty", - "chrono", - "log", - "termcolor", - "thread_local", -] - [[package]] name = "str-buf" version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d44a3643b4ff9caf57abcee9c2c621d6c03d9135e0d8b589bd9afb5992cb176a" -[[package]] -name = "strsim" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" - -[[package]] -name = "structopt" -version = "0.3.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40b9788f4202aa75c240ecc9c15c65185e6a39ccdeb0fd5d008b98825464c87c" -dependencies = [ - "clap", - "lazy_static 1.4.0", - "structopt-derive", -] - -[[package]] -name = "structopt-derive" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" -dependencies = [ - "heck", - "proc-macro-error", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "syn" version = "1.0.82" @@ -784,176 +385,69 @@ 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 = "tempfile" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "rand", - "redox_syscall 0.2.10", - "remove_dir_all", - "winapi", -] - -[[package]] -name = "term_size" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "termcolor" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "termion" -version = "1.5.6" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "077185e2eac69c3f8379a4298e1e07cd36beb962290d4a51199acf0fdc10607e" +checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" dependencies = [ - "libc", - "numtoa", - "redox_syscall 0.2.10", - "redox_termios", + "cfg-if", + "fastrand", + "redox_syscall", + "rustix", + "windows-sys", ] [[package]] -name = "textwrap" -version = "0.11.0" +name = "thiserror" +version = "1.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +checksum = "a5ab016db510546d856297882807df8da66a16fb8c4101cb8b30054b0d5b2d9c" dependencies = [ - "term_size", - "unicode-width", + "thiserror-impl", ] [[package]] -name = "thread_local" -version = "0.3.4" +name = "thiserror-impl" +version = "1.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14" +checksum = "5420d42e90af0c38c3290abcca25b9b3bdf379fc9f55c528f53a269d9c9a267e" dependencies = [ - "lazy_static 0.2.11", - "unreachable", -] - -[[package]] -name = "time" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" -dependencies = [ - "libc", - "winapi", + "proc-macro2", + "quote", + "syn", ] [[package]] -name = "tree_magic" -version = "0.2.3" +name = "tree_magic_mini" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d99367ce3e553a84738f73bd626ccca541ef90ae757fdcdc4cbe728e6cb629" +checksum = "91adfd0607cacf6e4babdb870e9bec4037c1c4b151cfd279ccefc5e0c7feaa6d" dependencies = [ + "bytecount", "fnv", - "lazy_static 1.4.0", + "lazy_static", "nom", - "parking_lot", + "once_cell", "petgraph", ] -[[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-segmentation" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" - -[[package]] -name = "unicode-width" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" - [[package]] name = "unicode-xid" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" -[[package]] -name = "unreachable" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" -dependencies = [ - "void", -] - -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - -[[package]] -name = "version_check" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" - -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - -[[package]] -name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" - [[package]] name = "wayland-client" -version = "0.27.0" +version = "0.29.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab702fefbcd6d6f67fb5816e3a89a3b5a42a94290abbc015311c9a30d1068ae4" +checksum = "3f3b068c05a039c9f755f881dc50f01732214f5685e379829759088967c46715" dependencies = [ - "bitflags", + "bitflags 1.3.2", "downcast-rs", "libc", - "nix 0.17.0", + "nix", "wayland-commons", "wayland-scanner", "wayland-sys", @@ -961,11 +455,11 @@ dependencies = [ [[package]] name = "wayland-commons" -version = "0.27.0" +version = "0.29.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e972e9336ad5a9dd861b4e21ff35ad71d3e5c6b4803d65c39913612f851b95f1" +checksum = "8691f134d584a33a6606d9d717b95c4fa20065605f798a3f350d78dced02a902" dependencies = [ - "nix 0.17.0", + "nix", "once_cell", "smallvec", "wayland-sys", @@ -973,11 +467,11 @@ dependencies = [ [[package]] name = "wayland-protocols" -version = "0.27.0" +version = "0.29.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3d6fc54b17b98b5083bc21ae3a30e6d75cb4b01647360e4c3a04648bcf8781d" +checksum = "b950621f9354b322ee817a23474e479b34be96c2e909c14f7bc0100e9a970bc6" dependencies = [ - "bitflags", + "bitflags 1.3.2", "wayland-client", "wayland-commons", "wayland-scanner", @@ -985,9 +479,9 @@ dependencies = [ [[package]] name = "wayland-scanner" -version = "0.27.0" +version = "0.29.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "030f56009d932bd9400bb472764fea8109be1b0fc482d9cd75496c943ac30328" +checksum = "8f4303d8fa22ab852f789e75a967f0a2cdc430a607751c0499bada3e451cbd53" dependencies = [ "proc-macro2", "quote", @@ -996,9 +490,9 @@ dependencies = [ [[package]] name = "wayland-sys" -version = "0.27.0" +version = "0.29.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bdeffbbb474477dfa2acb45ac7479e5fe8f741c64ab032c5d11b94d07edc269" +checksum = "be12ce1a3c39ec7dba25594b97b42cb3195d54953ddb9d3d95a7c3902bc6e9d4" dependencies = [ "pkg-config", ] @@ -1020,10 +514,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] -name = "winapi-util" -version = "0.1.5" +name = "winapi-wsapoll" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +checksum = "44c17110f57155602a80dca10be03852116403c9ff3cd25b079d666f2aa3df6e" dependencies = [ "winapi", ] @@ -1034,47 +528,119 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + [[package]] name = "wl-clipboard-rs" -version = "0.4.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d00076f424455f5988a18c7d7433fc7f919d6f4c685f663439cf7b4c65a288" +checksum = "981a303dfbb75d659f6612d05a14b2e363c103d24f676a2d44a00d18507a1ad9" dependencies = [ "derive-new", - "derive_more", - "exitfailure", - "failure", "libc", "log", - "mime_guess", - "nix 0.18.0", + "nix", "os_pipe", - "stderrlog", - "structopt", "tempfile", - "tree_magic", + "thiserror", + "tree_magic_mini", "wayland-client", "wayland-protocols", ] [[package]] name = "x11-clipboard" -version = "0.5.3" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "473068b7b80ac86a18328824f1054e5e007898c47b5bbc281bd7abe32bc3653c" +checksum = "980b9aa9226c3b7de8e2adb11bf20124327c054e0e5812d2aac0b5b5a87e7464" dependencies = [ - "xcb", + "x11rb", ] [[package]] -name = "xcb" +name = "x11rb" version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771e2b996df720cd1c6dd9ff90f62d91698fd3610cc078388d0564bdd6622a9c" +checksum = "592b4883219f345e712b3209c62654ebda0bb50887f330cbd018d0f654bfd507" dependencies = [ - "libc", - "log", - "quick-xml", + "gethostname", + "nix", + "winapi", + "winapi-wsapoll", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56b245751c0ac9db0e006dc812031482784e434630205a93c73cfefcaabeac67" +dependencies = [ + "nix", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 4089177..5f4222d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "clipboard" -version = "0.0.1" +version = "0.0.2" authors = ["jiyinyiyong "] -edition = "2018" +edition = "2021" [lib] name = "clipboard" @@ -13,6 +13,6 @@ crate-type = ["dylib"] # Creates dynamic lib # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -cirru_edn = "0.2.20" -cirru_parser = "0.1.23" -cli-clipboard = "0.2.1" \ No newline at end of file +cirru_edn = "0.5.0" +cirru_parser = "0.1.25" +cli-clipboard = "0.4.0" \ No newline at end of file diff --git a/build.sh b/build.sh index 3ed301b..88d50bc 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,4 @@ +rm -rfv dylibs cargo build --release mkdir -p dylibs/ && ls target/release/ && cp -v target/release/*.* dylibs/ diff --git a/calcit.cirru b/calcit.cirru index 76631f3..07046da 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -1,207 +1,207 @@ -{} - :users $ {} - |u0 $ {} (:theme :star-trail) (:id |u0) (:name |chen) (:nickname |chen) (:avatar nil) (:password |d41d8cd98f00b204e9800998ecf8427e) - :ir $ {} (:package |clipboard) - :files $ {} - |clipboard.core $ {} - :ns $ {} (:type :expr) (:by |u0) (:at 1630171366222) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630171366222) (:text |ns) - |j $ {} (:type :leaf) (:by |u0) (:at 1630171366222) (:text |clipboard.core) - |r $ {} (:type :expr) (:by |u0) (:at 1630175118985) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630175119637) (:text |:require) - |j $ {} (:type :expr) (:by |u0) (:at 1630175120856) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638722987480) (:text |clipboard.$meta) - |j $ {} (:type :leaf) (:by |u0) (:at 1630175127717) (:text |:refer) - |r $ {} (:type :expr) (:by |u0) (:at 1630175128076) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630175130627) (:text |calcit-dirname) - |r $ {} (:type :expr) (:by |u0) (:at 1633181140100) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638722991750) (:text |clipboard.util) - |j $ {} (:type :leaf) (:by |u0) (:at 1633181140100) (:text |:refer) - |r $ {} (:type :expr) (:by |u0) (:at 1633181140100) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804181370) (:text |get-dylib-path) - :configs $ {} - :defs $ {} - |copy! $ {} (:type :expr) (:by |u0) (:at 1630219258753) +{} (:package |clipboard) + :configs $ {} (:init-fn |clipboard.test/main!) (:port 6001) (:reload-fn |clipboard.test/reload!) (:version |0.0.1) + :modules $ [] + :entries $ {} + :files $ {} + |clipboard.core $ %{} :FileEntry + :defs $ {} + |copy! $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1630219258753) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630219258753) (:text |defn) - |j $ {} (:type :leaf) (:by |u0) (:at 1638722870290) (:text |copy!) - |r $ {} (:type :expr) (:by |u0) (:at 1630219268038) + |T $ %{} :Leaf (:at 1630219258753) (:by |u0) (:text |defn) + |j $ %{} :Leaf (:at 1638722870290) (:by |u0) (:text |copy!) + |r $ %{} :Expr (:at 1630219268038) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638722880362) (:text |content) - |v $ {} (:type :expr) (:by |u0) (:at 1630219268038) + |T $ %{} :Leaf (:at 1638722880362) (:by |u0) (:text |content) + |v $ %{} :Expr (:at 1630219268038) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633253263271) (:text |&call-dylib-edn) - |b $ {} (:type :expr) (:by |u0) (:at 1634804189975) + |T $ %{} :Leaf (:at 1633253263271) (:by |u0) (:text |&call-dylib-edn) + |b $ %{} :Expr (:at 1634804189975) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804196083) (:text |get-dylib-path) - |j $ {} (:type :leaf) (:by |u0) (:at 1638722906348) (:text "|\"/dylibs/libclipboard") - |r $ {} (:type :leaf) (:by |u0) (:at 1638722878035) (:text "|\"copy") - |v $ {} (:type :leaf) (:by |u0) (:at 1638722885281) (:text |content) - |paste! $ {} (:type :expr) (:by |u0) (:at 1638722916972) + |T $ %{} :Leaf (:at 1634804196083) (:by |u0) (:text |get-dylib-path) + |j $ %{} :Leaf (:at 1638722906348) (:by |u0) (:text "|\"/dylibs/libclipboard") + |r $ %{} :Leaf (:at 1638722878035) (:by |u0) (:text "|\"copy") + |v $ %{} :Leaf (:at 1638722885281) (:by |u0) (:text |content) + |paste! $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1638722916972) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638722916972) (:text |defn) - |j $ {} (:type :leaf) (:by |u0) (:at 1638722919726) (:text |paste!) - |r $ {} (:type :expr) (:by |u0) (:at 1638722916972) + |T $ %{} :Leaf (:at 1638722916972) (:by |u0) (:text |defn) + |j $ %{} :Leaf (:at 1638722919726) (:by |u0) (:text |paste!) + |r $ %{} :Expr (:at 1638722916972) (:by |u0) :data $ {} - |v $ {} (:type :expr) (:by |u0) (:at 1638722916972) + |v $ %{} :Expr (:at 1638722916972) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638722916972) (:text |&call-dylib-edn) - |j $ {} (:type :expr) (:by |u0) (:at 1638722916972) + |T $ %{} :Leaf (:at 1638722916972) (:by |u0) (:text |&call-dylib-edn) + |j $ %{} :Expr (:at 1638722916972) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638722916972) (:text |get-dylib-path) - |j $ {} (:type :leaf) (:by |u0) (:at 1638722916972) (:text "|\"/dylibs/libclipboard") - |r $ {} (:type :leaf) (:by |u0) (:at 1638722924519) (:text "|\"paste") - :proc $ {} (:type :expr) (:by |u0) (:at 1630171366222) - :data $ {} - |clipboard.test $ {} - :ns $ {} (:type :expr) (:by |u0) (:at 1633149625774) + |T $ %{} :Leaf (:at 1638722916972) (:by |u0) (:text |get-dylib-path) + |j $ %{} :Leaf (:at 1638722916972) (:by |u0) (:text "|\"/dylibs/libclipboard") + |r $ %{} :Leaf (:at 1638722924519) (:by |u0) (:text "|\"paste") + :ns $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1630171366222) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633149625774) (:text |ns) - |j $ {} (:type :leaf) (:by |u0) (:at 1633149625774) (:text |clipboard.test) - |r $ {} (:type :expr) (:by |u0) (:at 1633149974572) + |T $ %{} :Leaf (:at 1630171366222) (:by |u0) (:text |ns) + |j $ %{} :Leaf (:at 1630171366222) (:by |u0) (:text |clipboard.core) + |r $ %{} :Expr (:at 1630175118985) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633149975596) (:text |:require) - |j $ {} (:type :expr) (:by |u0) (:at 1634703855566) + |T $ %{} :Leaf (:at 1630175119637) (:by |u0) (:text |:require) + |j $ %{} :Expr (:at 1630175120856) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1638722987480) (:by |u0) (:text |clipboard.$meta) + |j $ %{} :Leaf (:at 1630175127717) (:by |u0) (:text |:refer) + |r $ %{} :Expr (:at 1630175128076) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1630175130627) (:by |u0) (:text |calcit-dirname) + |r $ %{} :Expr (:at 1633181140100) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638723003664) (:text |clipboard.core) - |j $ {} (:type :leaf) (:by |u0) (:at 1634703859915) (:text |:refer) - |r $ {} (:type :expr) (:by |u0) (:at 1634703860100) + |T $ %{} :Leaf (:at 1638722991750) (:by |u0) (:text |clipboard.util) + |j $ %{} :Leaf (:at 1633181140100) (:by |u0) (:text |:refer) + |r $ %{} :Expr (:at 1633181140100) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638723065998) (:text |copy!) - |j $ {} (:type :leaf) (:by |u0) (:at 1638723067495) (:text |paste!) - :configs $ {} - :defs $ {} - |run-tests $ {} (:type :expr) (:by |u0) (:at 1633150008092) + |T $ %{} :Leaf (:at 1634804181370) (:by |u0) (:text |get-dylib-path) + |clipboard.test $ %{} :FileEntry + :defs $ {} + |main! $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1633149996242) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633150011172) (:text |defn) - |j $ {} (:type :leaf) (:by |u0) (:at 1633150008092) (:text |run-tests) - |r $ {} (:type :expr) (:by |u0) (:at 1633150008092) + |T $ %{} :Leaf (:at 1633149996242) (:by |u0) (:text |defn) + |j $ %{} :Leaf (:at 1633149996242) (:by |u0) (:text |main!) + |r $ %{} :Expr (:at 1633149996242) (:by |u0) :data $ {} - |v $ {} (:type :expr) (:by |u0) (:at 1634703837934) + |v $ %{} :Expr (:at 1633150002066) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634703837934) (:text |println) - |j $ {} (:type :leaf) (:by |u0) (:at 1638723080025) (:text "|\"%%%% test for clipboard") - |x $ {} (:type :expr) (:by |u0) (:at 1634703837934) + |T $ %{} :Leaf (:at 1633150004371) (:by |u0) (:text |run-tests) + |reload! $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1633149998862) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1633149998862) (:by |u0) (:text |defn) + |j $ %{} :Leaf (:at 1633149998862) (:by |u0) (:text |reload!) + |r $ %{} :Expr (:at 1633149998862) (:by |u0) + :data $ {} + |run-tests $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1633150008092) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1633150011172) (:by |u0) (:text |defn) + |j $ %{} :Leaf (:at 1633150008092) (:by |u0) (:text |run-tests) + |r $ %{} :Expr (:at 1633150008092) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634703837934) (:text |println) - |j $ {} (:type :leaf) (:by |u0) (:at 1638723087560) (:text "|\"read clipboard") - |r $ {} (:type :expr) (:by |u0) (:at 1638723088242) + |v $ %{} :Expr (:at 1634703837934) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1634703837934) (:by |u0) (:text |println) + |j $ %{} :Leaf (:at 1638723080025) (:by |u0) (:text "|\"%%%% test for clipboard") + |x $ %{} :Expr (:at 1634703837934) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1634703837934) (:by |u0) (:text |println) + |j $ %{} :Leaf (:at 1638723087560) (:by |u0) (:text "|\"read clipboard") + |r $ %{} :Expr (:at 1638723088242) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638723088693) (:text |paste!) - |y $ {} (:type :expr) (:by |u0) (:at 1634703837934) + |T $ %{} :Leaf (:at 1638723088693) (:by |u0) (:text |paste!) + |y $ %{} :Expr (:at 1634703837934) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634703837934) (:text |println) - |j $ {} (:type :leaf) (:by |u0) (:at 1638723096244) (:text "|\"write to..") - |r $ {} (:type :expr) (:by |u0) (:at 1638723097382) + |T $ %{} :Leaf (:at 1634703837934) (:by |u0) (:text |println) + |j $ %{} :Leaf (:at 1638723096244) (:by |u0) (:text "|\"write to..") + |r $ %{} :Expr (:at 1638723097382) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638723099537) (:text |copy!) - |j $ {} (:type :expr) (:by |u0) (:at 1638723100983) + |T $ %{} :Leaf (:at 1638723099537) (:by |u0) (:text |copy!) + |j $ %{} :Expr (:at 1638723100983) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638723101947) (:text |str) - |j $ {} (:type :expr) (:by |u0) (:at 1638723102312) + |T $ %{} :Leaf (:at 1638723101947) (:by |u0) (:text |str) + |j $ %{} :Expr (:at 1638723102312) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638723102935) (:text |range) - |j $ {} (:type :leaf) (:by |u0) (:at 1638723103733) (:text |100) - |main! $ {} (:type :expr) (:by |u0) (:at 1633149996242) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633149996242) (:text |defn) - |j $ {} (:type :leaf) (:by |u0) (:at 1633149996242) (:text |main!) - |r $ {} (:type :expr) (:by |u0) (:at 1633149996242) - :data $ {} - |v $ {} (:type :expr) (:by |u0) (:at 1633150002066) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633150004371) (:text |run-tests) - |reload! $ {} (:type :expr) (:by |u0) (:at 1633149998862) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633149998862) (:text |defn) - |j $ {} (:type :leaf) (:by |u0) (:at 1633149998862) (:text |reload!) - |r $ {} (:type :expr) (:by |u0) (:at 1633149998862) - :data $ {} - :proc $ {} (:type :expr) (:by |u0) (:at 1633149625774) + |T $ %{} :Leaf (:at 1638723102935) (:by |u0) (:text |range) + |j $ %{} :Leaf (:at 1638723103733) (:by |u0) (:text |100) + :ns $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1633149625774) (:by |u0) :data $ {} - |clipboard.util $ {} - :ns $ {} (:type :expr) (:by |u0) (:at 1633181044360) - :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1633181044360) (:text |ns) - |j $ {} (:type :leaf) (:by |u0) (:at 1633181044360) (:text |clipboard.util) - |r $ {} (:type :expr) (:by |u0) (:at 1634804160546) + |T $ %{} :Leaf (:at 1633149625774) (:by |u0) (:text |ns) + |j $ %{} :Leaf (:at 1633149625774) (:by |u0) (:text |clipboard.test) + |r $ %{} :Expr (:at 1633149974572) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804161330) (:text |:require) - |j $ {} (:type :expr) (:by |u0) (:at 1634804162771) + |T $ %{} :Leaf (:at 1633149975596) (:by |u0) (:text |:require) + |j $ %{} :Expr (:at 1634703855566) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1638723029067) (:text |clipboard.$meta) - |j $ {} (:type :leaf) (:by |u0) (:at 1634804168120) (:text |:refer) - |r $ {} (:type :expr) (:by |u0) (:at 1634804168421) + |T $ %{} :Leaf (:at 1638723003664) (:by |u0) (:text |clipboard.core) + |j $ %{} :Leaf (:at 1634703859915) (:by |u0) (:text |:refer) + |r $ %{} :Expr (:at 1634703860100) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804171748) (:text |calcit-dirname) - |j $ {} (:type :leaf) (:by |u0) (:at 1634804175462) (:text |calcit-filename) - :configs $ {} - :defs $ {} - |get-dylib-ext $ {} (:type :expr) (:by |u0) (:at 1630231398718) + |T $ %{} :Leaf (:at 1638723065998) (:by |u0) (:text |copy!) + |j $ %{} :Leaf (:at 1638723067495) (:by |u0) (:text |paste!) + |clipboard.util $ %{} :FileEntry + :defs $ {} + |get-dylib-ext $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1630231398718) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630231418304) (:text |defmacro) - |j $ {} (:type :leaf) (:by |u0) (:at 1633181058353) (:text |get-dylib-ext) - |r $ {} (:type :expr) (:by |u0) (:at 1630231398718) + |T $ %{} :Leaf (:at 1630231418304) (:by |u0) (:text |defmacro) + |j $ %{} :Leaf (:at 1633181058353) (:by |u0) (:text |get-dylib-ext) + |r $ %{} :Expr (:at 1630231398718) (:by |u0) :data $ {} - |v $ {} (:type :expr) (:by |u0) (:at 1630231403270) + |v $ %{} :Expr (:at 1630231403270) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630231423910) (:text |case-default) - |b $ {} (:type :expr) (:by |u0) (:at 1630231429893) + |T $ %{} :Leaf (:at 1630231423910) (:by |u0) (:text |case-default) + |b $ %{} :Expr (:at 1630231429893) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630231433951) (:text |&get-os) - |j $ {} (:type :leaf) (:by |u0) (:at 1630231427453) (:text "|\".so") - |r $ {} (:type :expr) (:by |u0) (:at 1630231437150) + |T $ %{} :Leaf (:at 1630231433951) (:by |u0) (:text |&get-os) + |j $ %{} :Leaf (:at 1630231427453) (:by |u0) (:text "|\".so") + |r $ %{} :Expr (:at 1630231437150) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630231439152) (:text |:macos) - |j $ {} (:type :leaf) (:by |u0) (:at 1630231447585) (:text "|\".dylib") - |v $ {} (:type :expr) (:by |u0) (:at 1630231448478) + |T $ %{} :Leaf (:at 1630231439152) (:by |u0) (:text |:macos) + |j $ %{} :Leaf (:at 1630231447585) (:by |u0) (:text "|\".dylib") + |v $ %{} :Expr (:at 1630231448478) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630231449901) (:text |:windows) - |j $ {} (:type :leaf) (:by |u0) (:at 1630231461388) (:text "|\".dll") - |get-dylib-path $ {} (:type :expr) (:by |u0) (:at 1634804142034) + |T $ %{} :Leaf (:at 1630231449901) (:by |u0) (:text |:windows) + |j $ %{} :Leaf (:at 1630231461388) (:by |u0) (:text "|\".dll") + |get-dylib-path $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1634804142034) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804142034) (:text |defn) - |j $ {} (:type :leaf) (:by |u0) (:at 1634804142034) (:text |get-dylib-path) - |n $ {} (:type :expr) (:by |u0) (:at 1634804146574) + |T $ %{} :Leaf (:at 1634804142034) (:by |u0) (:text |defn) + |j $ %{} :Leaf (:at 1634804142034) (:by |u0) (:text |get-dylib-path) + |n $ %{} :Expr (:at 1634804146574) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804230294) (:text |p) - |r $ {} (:type :expr) (:by |u0) (:at 1634804145483) + |T $ %{} :Leaf (:at 1634804230294) (:by |u0) (:text |p) + |r $ %{} :Expr (:at 1634804145483) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804145483) (:text |str) - |j $ {} (:type :expr) (:by |u0) (:at 1634804145483) + |T $ %{} :Leaf (:at 1634804145483) (:by |u0) (:text |str) + |j $ %{} :Expr (:at 1634804145483) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804145483) (:text |or-current-path) - |j $ {} (:type :leaf) (:by |u0) (:at 1634804145483) (:text |calcit-dirname) - |r $ {} (:type :leaf) (:by |u0) (:at 1634804157377) (:text |p) - |v $ {} (:type :expr) (:by |u0) (:at 1634804145483) + |T $ %{} :Leaf (:at 1634804145483) (:by |u0) (:text |or-current-path) + |j $ %{} :Leaf (:at 1634804145483) (:by |u0) (:text |calcit-dirname) + |r $ %{} :Leaf (:at 1634804157377) (:by |u0) (:text |p) + |v $ %{} :Expr (:at 1634804145483) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1634804145483) (:text |get-dylib-ext) - |or-current-path $ {} (:type :expr) (:by |u0) (:at 1630245582276) + |T $ %{} :Leaf (:at 1634804145483) (:by |u0) (:text |get-dylib-ext) + |or-current-path $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1630245582276) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630245583936) (:text |defn) - |j $ {} (:type :leaf) (:by |u0) (:at 1633181131099) (:text |or-current-path) - |r $ {} (:type :expr) (:by |u0) (:at 1630245582276) + |T $ %{} :Leaf (:at 1630245583936) (:by |u0) (:text |defn) + |j $ %{} :Leaf (:at 1633181131099) (:by |u0) (:text |or-current-path) + |r $ %{} :Expr (:at 1630245582276) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630245585364) (:text |p) - |v $ {} (:type :expr) (:by |u0) (:at 1630245585942) + |T $ %{} :Leaf (:at 1630245585364) (:by |u0) (:text |p) + |v $ %{} :Expr (:at 1630245585942) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630245586336) (:text |if) - |j $ {} (:type :expr) (:by |u0) (:at 1630245586894) + |T $ %{} :Leaf (:at 1630245586336) (:by |u0) (:text |if) + |j $ %{} :Expr (:at 1630245586894) (:by |u0) :data $ {} - |T $ {} (:type :leaf) (:by |u0) (:at 1630245614560) (:text |blank?) - |j $ {} (:type :leaf) (:by |u0) (:at 1630245615061) (:text |p) - |r $ {} (:type :leaf) (:by |u0) (:at 1630245616843) (:text "|\".") - |v $ {} (:type :leaf) (:by |u0) (:at 1630245618366) (:text |p) - :proc $ {} (:type :expr) (:by |u0) (:at 1633181044360) + |T $ %{} :Leaf (:at 1630245614560) (:by |u0) (:text |blank?) + |j $ %{} :Leaf (:at 1630245615061) (:by |u0) (:text |p) + |r $ %{} :Leaf (:at 1630245616843) (:by |u0) (:text "|\".") + |v $ %{} :Leaf (:at 1630245618366) (:by |u0) (:text |p) + :ns $ %{} :CodeEntry (:doc |) + :code $ %{} :Expr (:at 1633181044360) (:by |u0) :data $ {} - :configs $ {} (:port 6001) (:init-fn |clipboard.test/main!) (:reload-fn |clipboard.test/reload!) - :modules $ [] - :version |0.0.1 - :entries $ {} + |T $ %{} :Leaf (:at 1633181044360) (:by |u0) (:text |ns) + |j $ %{} :Leaf (:at 1633181044360) (:by |u0) (:text |clipboard.util) + |r $ %{} :Expr (:at 1634804160546) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1634804161330) (:by |u0) (:text |:require) + |j $ %{} :Expr (:at 1634804162771) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1638723029067) (:by |u0) (:text |clipboard.$meta) + |j $ %{} :Leaf (:at 1634804168120) (:by |u0) (:text |:refer) + |r $ %{} :Expr (:at 1634804168421) (:by |u0) + :data $ {} + |T $ %{} :Leaf (:at 1634804171748) (:by |u0) (:text |calcit-dirname) + |j $ %{} :Leaf (:at 1634804175462) (:by |u0) (:text |calcit-filename) + :users $ {} + |u0 $ {} (:avatar nil) (:id |u0) (:name |chen) (:nickname |chen) (:password |d41d8cd98f00b204e9800998ecf8427e) (:theme :star-trail) diff --git a/compact.cirru b/compact.cirru index 54a4d38..ad34910 100644 --- a/compact.cirru +++ b/compact.cirru @@ -1,45 +1,55 @@ {} (:package |clipboard) - :configs $ {} (:init-fn |clipboard.test/main!) (:reload-fn |clipboard.test/reload!) + :configs $ {} (:init-fn |clipboard.test/main!) (:reload-fn |clipboard.test/reload!) (:version |0.0.1) :modules $ [] - :version |0.0.1 :entries $ {} :files $ {} - |clipboard.core $ {} - :ns $ quote - ns clipboard.core $ :require - clipboard.$meta :refer $ calcit-dirname - clipboard.util :refer $ get-dylib-path + |clipboard.core $ %{} :FileEntry :defs $ {} - |copy! $ quote - defn copy! (content) - &call-dylib-edn (get-dylib-path "\"/dylibs/libclipboard") "\"copy" content - |paste! $ quote - defn paste! () $ &call-dylib-edn (get-dylib-path "\"/dylibs/libclipboard") "\"paste" - |clipboard.test $ {} - :ns $ quote - ns clipboard.test $ :require - clipboard.core :refer $ copy! paste! + |copy! $ %{} :CodeEntry (:doc |) + :code $ quote + defn copy! (content) + &call-dylib-edn (get-dylib-path "\"/dylibs/libclipboard") "\"copy" content + |paste! $ %{} :CodeEntry (:doc |) + :code $ quote + defn paste! () $ &call-dylib-edn (get-dylib-path "\"/dylibs/libclipboard") "\"paste" + :ns $ %{} :CodeEntry (:doc |) + :code $ quote + ns clipboard.core $ :require + clipboard.$meta :refer $ calcit-dirname + clipboard.util :refer $ get-dylib-path + |clipboard.test $ %{} :FileEntry :defs $ {} - |run-tests $ quote - defn run-tests () (println "\"%%%% test for clipboard") - println "\"read clipboard" $ paste! - println "\"write to.." $ copy! - str $ range 100 - |main! $ quote - defn main! () $ run-tests - |reload! $ quote - defn reload! $ - |clipboard.util $ {} - :ns $ quote - ns clipboard.util $ :require - clipboard.$meta :refer $ calcit-dirname calcit-filename + |main! $ %{} :CodeEntry (:doc |) + :code $ quote + defn main! () $ run-tests + |reload! $ %{} :CodeEntry (:doc |) + :code $ quote + defn reload! $ + |run-tests $ %{} :CodeEntry (:doc |) + :code $ quote + defn run-tests () (println "\"%%%% test for clipboard") + println "\"read clipboard" $ paste! + println "\"write to.." $ copy! + str $ range 100 + :ns $ %{} :CodeEntry (:doc |) + :code $ quote + ns clipboard.test $ :require + clipboard.core :refer $ copy! paste! + |clipboard.util $ %{} :FileEntry :defs $ {} - |get-dylib-ext $ quote - defmacro get-dylib-ext () $ case-default (&get-os) "\".so" (:macos "\".dylib") (:windows "\".dll") - |get-dylib-path $ quote - defn get-dylib-path (p) - str (or-current-path calcit-dirname) p $ get-dylib-ext - |or-current-path $ quote - defn or-current-path (p) - if (blank? p) "\"." p + |get-dylib-ext $ %{} :CodeEntry (:doc |) + :code $ quote + defmacro get-dylib-ext () $ case-default (&get-os) "\".so" (:macos "\".dylib") (:windows "\".dll") + |get-dylib-path $ %{} :CodeEntry (:doc |) + :code $ quote + defn get-dylib-path (p) + str (or-current-path calcit-dirname) p $ get-dylib-ext + |or-current-path $ %{} :CodeEntry (:doc |) + :code $ quote + defn or-current-path (p) + if (blank? p) "\"." p + :ns $ %{} :CodeEntry (:doc |) + :code $ quote + ns clipboard.util $ :require + clipboard.$meta :refer $ calcit-dirname calcit-filename