From b17621960bccd191f0057a0b480c6829300213c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=94=84=EB=A6=AC=EB=A7=88?= Date: Sat, 18 May 2024 11:19:03 -0400 Subject: [PATCH] tests --- apps/documents/Cargo.lock | 456 +---------- apps/documents/Cargo.toml | 1 - apps/documents/build.ps1 | 2 +- apps/documents/documents.dib | 4 +- apps/documents/documents.dib.html | 178 +++-- apps/documents/documents.dib.ipynb | 178 +++-- apps/documents/documents.fsx | 1089 ++++++++++++++----------- apps/documents/documents.rs | 1199 ++++++++++++++++------------ apps/documents/documents.spi | 2 + 9 files changed, 1489 insertions(+), 1620 deletions(-) diff --git a/apps/documents/Cargo.lock b/apps/documents/Cargo.lock index 2451aebe..b3687916 100644 --- a/apps/documents/Cargo.lock +++ b/apps/documents/Cargo.lock @@ -61,7 +61,7 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" dependencies = [ - "windows-sys 0.52.0", + "windows-sys", ] [[package]] @@ -71,18 +71,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" dependencies = [ "anstyle", - "windows-sys 0.52.0", -] - -[[package]] -name = "async-channel" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" -dependencies = [ - "concurrent-queue", - "event-listener 2.5.3", - "futures-core", + "windows-sys", ] [[package]] @@ -98,91 +87,15 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "async-executor" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b10202063978b3351199d68f8b22c4e47e4b1b822f8d43fd862d5ea8c006b29a" -dependencies = [ - "async-task", - "concurrent-queue", - "fastrand 2.0.2", - "futures-lite 2.3.0", - "slab", -] - [[package]] name = "async-fs" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc19683171f287921f2405677dd2ed2549c3b3bda697a563ebc3a121ace2aba1" dependencies = [ - "async-lock 3.3.0", - "blocking", - "futures-lite 2.3.0", -] - -[[package]] -name = "async-global-executor" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c" -dependencies = [ - "async-channel 2.2.1", - "async-executor", - "async-io 2.3.2", - "async-lock 3.3.0", + "async-lock", "blocking", - "futures-lite 2.3.0", - "once_cell", -] - -[[package]] -name = "async-io" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" -dependencies = [ - "async-lock 2.8.0", - "autocfg", - "cfg-if", - "concurrent-queue", - "futures-lite 1.13.0", - "log", - "parking", - "polling 2.8.0", - "rustix 0.37.27", - "slab", - "socket2", - "waker-fn", -] - -[[package]] -name = "async-io" -version = "2.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcccb0f599cfa2f8ace422d3555572f47424da5648a4382a9dd0310ff8210884" -dependencies = [ - "async-lock 3.3.0", - "cfg-if", - "concurrent-queue", - "futures-io", - "futures-lite 2.3.0", - "parking", - "polling 3.6.0", - "rustix 0.38.32", - "slab", - "tracing", - "windows-sys 0.52.0", -] - -[[package]] -name = "async-lock" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" -dependencies = [ - "event-listener 2.5.3", + "futures-lite", ] [[package]] @@ -196,32 +109,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "async-std" -version = "1.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62565bb4402e926b29953c785397c6dc0391b7b446e45008b0049eb43cec6f5d" -dependencies = [ - "async-channel 1.9.0", - "async-global-executor", - "async-io 1.13.0", - "async-lock 2.8.0", - "crossbeam-utils", - "futures-channel", - "futures-core", - "futures-io", - "futures-lite 1.13.0", - "gloo-timers", - "kv-log-macro", - "log", - "memchr", - "once_cell", - "pin-project-lite", - "pin-utils", - "slab", - "wasm-bindgen-futures", -] - [[package]] name = "async-task" version = "4.7.0" @@ -235,7 +122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73f6338023cbfc0555eccb8e83d3d4dcf1183b51ca9140a03b1dbb8a559193db" dependencies = [ "async-fs", - "futures-lite 2.3.0", + "futures-lite", ] [[package]] @@ -250,18 +137,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "bitflags" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" - [[package]] name = "block-buffer" version = "0.11.0-pre.5" @@ -277,12 +152,12 @@ version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" dependencies = [ - "async-channel 2.2.1", - "async-lock 3.3.0", + "async-channel", + "async-lock", "async-task", - "fastrand 2.0.2", + "fastrand", "futures-io", - "futures-lite 2.3.0", + "futures-lite", "piper", "tracing", ] @@ -316,7 +191,7 @@ dependencies = [ "js-sys", "num-traits", "wasm-bindgen", - "windows-targets 0.52.5", + "windows-targets", ] [[package]] @@ -433,7 +308,6 @@ dependencies = [ name = "documents" version = "0.0.1" dependencies = [ - "async-std", "async-walkdir", "chrono", "clap", @@ -441,7 +315,7 @@ dependencies = [ "encoding_rs_io", "fable_library_rust", "futures", - "futures-lite 2.3.0", + "futures-lite", "inline_colorization", "rayon", "regex", @@ -472,22 +346,6 @@ dependencies = [ "encoding_rs", ] -[[package]] -name = "errno" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "event-listener" -version = "2.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" - [[package]] name = "event-listener" version = "4.0.3" @@ -541,15 +399,6 @@ dependencies = [ "uuid", ] -[[package]] -name = "fastrand" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] - [[package]] name = "fastrand" version = "2.0.2" @@ -605,28 +454,13 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" -[[package]] -name = "futures-lite" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" -dependencies = [ - "fastrand 1.9.0", - "futures-core", - "futures-io", - "memchr", - "parking", - "pin-project-lite", - "waker-fn", -] - [[package]] name = "futures-lite" version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" dependencies = [ - "fastrand 2.0.2", + "fastrand", "futures-core", "futures-io", "parking", @@ -687,18 +521,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "gloo-timers" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b995a66bb87bebce9a0f4a95aed01daca4872c050bfcb21653361c03bc35e5c" -dependencies = [ - "futures-channel", - "futures-core", - "js-sys", - "wasm-bindgen", -] - [[package]] name = "hermit-abi" version = "0.3.9" @@ -743,26 +565,6 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc1804bdb6a9784758b200007273a8b84e2b0b0b97a8f1e18e763eceb3e9f98a" -[[package]] -name = "instant" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "io-lifetimes" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" -dependencies = [ - "hermit-abi", - "libc", - "windows-sys 0.48.0", -] - [[package]] name = "js-sys" version = "0.3.69" @@ -772,41 +574,17 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "kv-log-macro" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f" -dependencies = [ - "log", -] - [[package]] name = "libc" version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" -[[package]] -name = "linux-raw-sys" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" - -[[package]] -name = "linux-raw-sys" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" - [[package]] name = "log" version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" -dependencies = [ - "value-bag", -] [[package]] name = "memchr" @@ -864,41 +642,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "668d31b1c4eba19242f2088b2bf3316b82ca31082a8335764db4e083db7485d4" dependencies = [ "atomic-waker", - "fastrand 2.0.2", + "fastrand", "futures-io", ] -[[package]] -name = "polling" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" -dependencies = [ - "autocfg", - "bitflags 1.3.2", - "cfg-if", - "concurrent-queue", - "libc", - "log", - "pin-project-lite", - "windows-sys 0.48.0", -] - -[[package]] -name = "polling" -version = "3.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0c976a60b2d7e99d6f229e414670a9b85d13ac305cc6d1e9c134de58c5aaaf6" -dependencies = [ - "cfg-if", - "concurrent-queue", - "hermit-abi", - "pin-project-lite", - "rustix 0.38.32", - "tracing", - "windows-sys 0.52.0", -] - [[package]] name = "proc-macro2" version = "1.0.79" @@ -975,33 +722,6 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" -[[package]] -name = "rustix" -version = "0.37.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" -dependencies = [ - "bitflags 1.3.2", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys 0.3.8", - "windows-sys 0.48.0", -] - -[[package]] -name = "rustix" -version = "0.38.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" -dependencies = [ - "bitflags 2.5.0", - "errno", - "libc", - "linux-raw-sys 0.4.13", - "windows-sys 0.52.0", -] - [[package]] name = "sha2" version = "0.11.0-pre.3" @@ -1022,16 +742,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "socket2" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "startup" version = "0.1.1" @@ -1096,18 +806,6 @@ dependencies = [ "getrandom", ] -[[package]] -name = "value-bag" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74797339c3b98616c009c7c3eb53a0ce41e85c8ec66bd3db96ed132d20cfdee8" - -[[package]] -name = "waker-fn" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c4517f54858c779bbcbf228f4fca63d121bf85fbecb2dc578cdf4a39395690" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -1139,18 +837,6 @@ dependencies = [ "wasm-bindgen-shared", ] -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.42" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" -dependencies = [ - "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", -] - [[package]] name = "wasm-bindgen-macro" version = "0.2.92" @@ -1180,54 +866,13 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" -[[package]] -name = "web-sys" -version = "0.3.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - [[package]] name = "windows-core" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.5", -] - -[[package]] -name = "windows-sys" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" -dependencies = [ - "windows-targets 0.48.5", + "windows-targets", ] [[package]] @@ -1236,22 +881,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.5", -] - -[[package]] -name = "windows-targets" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" -dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", + "windows-targets", ] [[package]] @@ -1260,46 +890,28 @@ version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", "windows_i686_gnullvm", - "windows_i686_msvc 0.52.5", - "windows_x86_64_gnu 0.52.5", - "windows_x86_64_gnullvm 0.52.5", - "windows_x86_64_msvc 0.52.5", + "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_gnullvm" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" - [[package]] name = "windows_aarch64_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" -[[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_gnu" version = "0.52.5" @@ -1312,48 +924,24 @@ version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" -[[package]] -name = "windows_i686_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" - [[package]] name = "windows_i686_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" -[[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_gnu" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" -[[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_gnullvm" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" -[[package]] -name = "windows_x86_64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" - [[package]] name = "windows_x86_64_msvc" version = "0.52.5" diff --git a/apps/documents/Cargo.toml b/apps/documents/Cargo.toml index 30282727..0aa4f6ec 100644 --- a/apps/documents/Cargo.toml +++ b/apps/documents/Cargo.toml @@ -11,7 +11,6 @@ inline_colorization = "~0.1" regex = "~1.10" clap = "~4.5" chrono = "~0.4" -async-std = "~1.12" encoding_rs = "~0.8" encoding_rs_io = "~0.1" futures = "~0.3" diff --git a/apps/documents/build.ps1 b/apps/documents/build.ps1 index 1ffbac08..04b6712d 100644 --- a/apps/documents/build.ps1 +++ b/apps/documents/build.ps1 @@ -12,7 +12,7 @@ $ErrorActionPreference = "Stop" $projectName = "documents" if (!$fast -and !$SkipNotebook) { - { . apps/spiral/dist/Supervisor$(_exe) --execute-command "target/release/spiral_builder$(_exe) dib --path ../vault/apps/$projectName/$projectName.dib" } | Invoke-Block -Retries 3 -Location ../../../polyglot + { . apps/spiral/dist/Supervisor$(_exe) --execute-command "workspace/target/release/spiral_builder$(_exe) dib --path ../vault/apps/$projectName/$projectName.dib" } | Invoke-Block -Retries 3 -Location ../../../polyglot } { . ../../../polyglot/apps/parser/dist/DibParser$(_exe) "$projectName.dib" spi } | Invoke-Block diff --git a/apps/documents/documents.dib b/apps/documents/documents.dib index a025982b..0fb37523 100644 --- a/apps/documents/documents.dib +++ b/apps/documents/documents.dib @@ -101,6 +101,8 @@ let crowbook hangul { ext dist_dir dist_path output_path } = | "pdf" => $'$"--set"' +. $'$" tex.paper.size a4paper"' + +. $'$" tex.template.add \\\"\\\\pagenumbering{{gobble}}\\\""' + // +. $'$" tex.template.add \\\"\\\\pagestyle{{empty}}\\\""' +. ( if hangul |> not then "" @@ -456,7 +458,7 @@ let run { source_dir dist_dir cache_dir hangul_spec } #!spiral //// test -///! rust -d async-walkdir encoding_rs encoding_rs_io futures-lite rayon regex sha2 +///! rust -d async-walkdir encoding_rs encoding_rs_io futures futures-lite rayon regex sha2 types () inl workspace_root = file_system.get_workspace_root () diff --git a/apps/documents/documents.dib.html b/apps/documents/documents.dib.html index 9afd16f8..646bb326 100644 --- a/apps/documents/documents.dib.html +++ b/apps/documents/documents.dib.html @@ -7714,6 +7714,8 @@

crowbook

| "pdf" => $'$"--set"' +. $'$" tex.paper.size a4paper"' + +. $'$" tex.template.add \\\"\\\\pagenumbering{{gobble}}\\\""' + // +. $'$" tex.template.add \\\"\\\\pagestyle{{empty}}\\\""' +. ( if hangul |> not then "" @@ -8147,7 +8149,7 @@

run

//// test
-///! rust -d async-walkdir encoding_rs encoding_rs_io futures-lite rayon regex sha2
+///! rust -d async-std async-walkdir encoding_rs encoding_rs_io futures futures-lite rayon regex sha2
 
 types ()
 inl workspace_root = file_system.get_workspace_root ()
@@ -8300,101 +8302,101 @@ 

run

00:00:00 debug #6 runtime.execute_with_options / file_name: git / arguments: ["ls-tree", "--format='%(objectname)'", "origin/gh-pages", "c:/home/git/vault/target/documents/test.md"] / options: (None, "git ls-tree --format='%(objectname)' origin/gh-pages "c:/home/git/vault/target/documents/test.md"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents")) 00:00:00 verbose #7 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 0 00:00:00 debug #8 runtime.execute_with_options / file_name: git / arguments: ["hash-object", "c:/home/git/vault/target/documents/dist/test.md"] / options: (None, "git hash-object "c:/home/git/vault/target/documents/dist/test.md"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) -00:00:00 verbose #9 ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b +00:00:00 verbose #9 > ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b 00:00:00 verbose #10 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 40 00:00:00 info #11 documents.run / par_map / origin_hash |> sm'.contains local_git_hash |> not / hash2 = None || hash1 <>. (hash2 |> optionm.value) / file: c:/home/git/vault/target/documents/dist/test.md / real_path: c:/home/git/vault/target/documents/test.md / relative_path: ./test.md / origin_hash_exit_code: 0 / origin_hash: / local_git_hash_exit_code: 0 / local_git_hash: ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b / hash1: f87ee09ec1dadc95e06e23bef39aa3185381d285bb9ca41a8a112061a6f504ec / hash2: US0_1 / dist_path: c:/home/git/vault/target/documents/dist/test.md / cache_path: c:/home/git/vault/target/documents/cache/test.md 00:00:00 debug #12 runtime.execute_with_options / file_name: C:/home/git/polyglot/../vault/deps/hangulize/cmd/hangulize/hangulize.exe / arguments: ["por-br"] / options: (None, "C:\home\git\polyglot\../vault/deps/hangulize/cmd/hangulize/hangulize.exe por-br", Array(MutCell([])), None, Some(fable_library_rust::module_3bd9ae6a::FuncType::Func1<alloc::sync::Arc<std::sync::mutex::Mutex<std::process::ChildStdin>>, ()>), true, None) -00:00:00 verbose #13 # ? -00:00:00 verbose #14 ## ? -00:00:00 verbose #15 --- -00:00:00 verbose #16 ??? -00:00:00 verbose #17 ??? -00:00:00 verbose #18 ??? -00:00:00 verbose #19 ??? +00:00:00 verbose #13 > # ? +00:00:00 verbose #14 > ## ? +00:00:00 verbose #15 > --- +00:00:00 verbose #16 > ??? +00:00:00 verbose #17 > ??? +00:00:00 verbose #18 > ??? +00:00:00 verbose #19 > ??? 00:00:00 verbose #20 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 28 00:00:00 info #21 documents.hangul / exit_code: 0 / result_len: 34 / output_path: c:/home/git/vault/target/documents/dist/test.hangul.md -00:00:00 debug #22 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "pdf", "--single", "c:/home/git/vault/target/documents/dist/test.md", "--output", "c:/home/git/vault/target/documents/dist/test.md.pdf", "--set", "tex.paper.size", "a4paper", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to pdf --single "c:/home/git/vault/target/documents/dist/test.md" --output "c:/home/git/vault/target/documents/dist/test.md.pdf" --set tex.paper.size a4paper rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) +00:00:00 debug #22 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "pdf", "--single", "c:/home/git/vault/target/documents/dist/test.md", "--output", "c:/home/git/vault/target/documents/dist/test.md.pdf", "--set", "tex.paper.size", "a4paper", "tex.template.add", "\\pagenumbering{gobble}", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to pdf --single "c:/home/git/vault/target/documents/dist/test.md" --output "c:/home/git/vault/target/documents/dist/test.md.pdf" --set tex.paper.size a4paper tex.template.add "\pagenumbering{gobble}" rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) 00:00:00 debug #23 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "epub", "--single", "c:/home/git/vault/target/documents/dist/test.md", "--output", "c:/home/git/vault/target/documents/dist/test.md.epub", "--set", "epub.version", "3", "html.css.add", "' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to epub --single "c:/home/git/vault/target/documents/dist/test.md" --output "c:/home/git/vault/target/documents/dist/test.md.epub" --set epub.version 3 html.css.add \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\" rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) -00:00:00 debug #24 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "html", "--single", "c:/home/git/vault/target/documents/dist/test.md", "--output", "c:/home/git/vault/target/documents/dist/test.md.html", "--set", "html.css.add", "' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to html --single "c:/home/git/vault/target/documents/dist/test.md" --output "c:/home/git/vault/target/documents/dist/test.md.html" --set html.css.add \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\" rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) +00:00:00 debug #24 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "epub", "--single", "c:/home/git/vault/target/documents/dist/test.hangul.md", "--output", "c:/home/git/vault/target/documents/dist/test.hangul.md.epub", "--set", "epub.version", "3", "html.css.add", "' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to epub --single "c:/home/git/vault/target/documents/dist/test.hangul.md" --output "c:/home/git/vault/target/documents/dist/test.hangul.md.epub" --set epub.version 3 html.css.add \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\" rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) +00:00:00 debug #25 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "html", "--single", "c:/home/git/vault/target/documents/dist/test.md", "--output", "c:/home/git/vault/target/documents/dist/test.md.html", "--set", "html.css.add", "' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to html --single "c:/home/git/vault/target/documents/dist/test.md" --output "c:/home/git/vault/target/documents/dist/test.md.html" --set html.css.add \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\" rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) 00:00:00 debug #26 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "html", "--single", "c:/home/git/vault/target/documents/dist/test.hangul.md", "--output", "c:/home/git/vault/target/documents/dist/test.hangul.md.html", "--set", "html.css.add", "' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to html --single "c:/home/git/vault/target/documents/dist/test.hangul.md" --output "c:/home/git/vault/target/documents/dist/test.hangul.md.html" --set html.css.add \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\" rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) -00:00:00 debug #26 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "epub", "--single", "c:/home/git/vault/target/documents/dist/test.hangul.md", "--output", "c:/home/git/vault/target/documents/dist/test.hangul.md.epub", "--set", "epub.version", "3", "html.css.add", "' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to epub --single "c:/home/git/vault/target/documents/dist/test.hangul.md" --output "c:/home/git/vault/target/documents/dist/test.hangul.md.epub" --set epub.version 3 html.css.add \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\" rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) -00:00:00 debug #27 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "pdf", "--single", "c:/home/git/vault/target/documents/dist/test.hangul.md", "--output", "c:/home/git/vault/target/documents/dist/test.hangul.md.pdf", "--set", "tex.paper.size", "a4paper", "tex.template.add", "\\usepackage{polyglossia}", "tex.template.add", "\\setmainlanguage{korean}", "tex.template.add", "\\setmainfont{NanumGothicCoding}", "tex.font.size", "12", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to pdf --single "c:/home/git/vault/target/documents/dist/test.hangul.md" --output "c:/home/git/vault/target/documents/dist/test.hangul.md.pdf" --set tex.paper.size a4paper tex.template.add "\usepackage{polyglossia}" tex.template.add "\setmainlanguage{korean}" tex.template.add "\setmainfont{NanumGothicCoding}" tex.font.size 12 rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) -00:00:00 verbose #28 \e[4;7mCROWBOOK 0.17.0\e[0m -00:00:00 verbose #29 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Ignoring YAML block:\e[0m -00:00:00 verbose #30 \e[4;7m\e[0m -00:00:00 verbose #31 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Attempting to generate html...\e[0m -00:00:00 verbose #32 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"#link-1\">a</a>\n <ul>\n <li><a href=\"#link-2\">b</a></li>\n </ul>\n</li>"\e[0m -00:00:00 verbose #33 \e[4;7m16:14:30 [INFO] crowbook::book: Succesfully generated HTML (standalone page): test.md.html\e[0m -00:00:00 verbose #34 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 440 -00:00:00 verbose #35 \e[4;7mCROWBOOK 0.17.0\e[0m -00:00:00 verbose #36 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Ignoring YAML block:\e[0m -00:00:00 verbose #37 \e[4;7m\e[0m -00:00:00 verbose #38 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Attempting to generate html...\e[0m -00:00:00 verbose #39 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"#link-1\">?</a>\n <ul>\n <li><a href=\"#link-2\">?</a></li>\n </ul>\n</li>"\e[0m -00:00:00 verbose #40 \e[4;7m16:14:30 [INFO] crowbook::book: Succesfully generated HTML (standalone page): test.hangul.md.html\e[0m -00:00:00 verbose #41 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 447 -00:00:00 verbose #42 \e[4;7mCROWBOOK 0.17.0\e[0m -00:00:00 verbose #43 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Ignoring YAML block:\e[0m -00:00:00 verbose #44 \e[4;7m\e[0m -00:00:00 verbose #45 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Attempting to generate epub...\e[0m -00:00:00 verbose #46 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: Add resource: "stylesheet.css"\e[0m -00:00:00 verbose #47 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: render_opf...\e[0m -00:00:00 verbose #48 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: id="title_page.xhtml", mime="application/xhtml+xml"\e[0m -00:00:00 verbose #49 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: content = Content { file: "title_page.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(TitlePage), title: "Title" }\e[0m -00:00:00 verbose #50 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: id="chapter_000.xhtml", mime="application/xhtml+xml"\e[0m -00:00:00 verbose #51 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: content = Content { file: "chapter_000.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(Text), title: "a" }\e[0m -00:00:00 verbose #52 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: id="stylesheet.css", mime="text/css"\e[0m -00:00:00 verbose #53 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::toc: rendered elem: "<li><a href=\"title_page.xhtml\">Title</a></li>"\e[0m -00:00:00 verbose #54 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"chapter_000.xhtml\">a</a>\n <ol>\n <li><a href=\"chapter_000.xhtml#link-2\">b</a></li>\n </ol>\n</li>"\e[0m -00:00:00 verbose #55 \e[4;7m16:14:30 [INFO] crowbook::book: Succesfully generated EPUB: test.md.epub\e[0m -00:00:00 verbose #56 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1422 -00:00:00 verbose #57 \e[4;7mCROWBOOK 0.17.0\e[0m -00:00:00 verbose #58 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Ignoring YAML block:\e[0m -00:00:00 verbose #59 \e[4;7m\e[0m -00:00:00 verbose #60 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Attempting to generate epub...\e[0m -00:00:00 verbose #61 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: Add resource: "stylesheet.css"\e[0m -00:00:00 verbose #62 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: render_opf...\e[0m -00:00:00 verbose #63 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: id="title_page.xhtml", mime="application/xhtml+xml"\e[0m -00:00:00 verbose #64 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: content = Content { file: "title_page.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(TitlePage), title: "Title" }\e[0m -00:00:00 verbose #65 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: id="chapter_000.xhtml", mime="application/xhtml+xml"\e[0m -00:00:00 verbose #66 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: content = Content { file: "chapter_000.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(Text), title: "?" }\e[0m -00:00:00 verbose #67 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::epub: id="stylesheet.css", mime="text/css"\e[0m -00:00:00 verbose #68 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::toc: rendered elem: "<li><a href=\"title_page.xhtml\">Title</a></li>"\e[0m -00:00:00 verbose #69 \e[4;7m16:14:30 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"chapter_000.xhtml\">?</a>\n <ol>\n <li><a href=\"chapter_000.xhtml#link-2\">?</a></li>\n </ol>\n</li>"\e[0m -00:00:00 verbose #70 \e[4;7m16:14:30 [INFO] crowbook::book: Succesfully generated EPUB: test.hangul.md.epub\e[0m -00:00:00 verbose #71 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1429 -00:00:10 verbose #72 \e[4;7mCROWBOOK 0.17.0\e[0m -00:00:10 verbose #73 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Ignoring YAML block:\e[0m -00:00:10 verbose #74 \e[4;7m\e[0m -00:00:10 verbose #75 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Attempting to generate pdf...\e[0m -00:00:10 verbose #76 \e[4;7m16:14:30 [DEBUG] (1) crowbook::latex: Attempting to run LaTeX on generated file\e[0m -00:00:10 verbose #77 \e[4;7m16:14:40 [INFO] crowbook::book: Succesfully generated PDF: test.md.pdf\e[0m -00:00:10 verbose #78 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 344 -00:00:10 verbose #79 \e[4;7mCROWBOOK 0.17.0\e[0m -00:00:10 verbose #80 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Ignoring YAML block:\e[0m -00:00:10 verbose #81 \e[4;7m\e[0m -00:00:10 verbose #82 \e[4;7m16:14:30 [DEBUG] (1) crowbook::book: Attempting to generate pdf...\e[0m -00:00:10 verbose #83 \e[4;7m16:14:30 [DEBUG] (1) crowbook::latex: Attempting to run LaTeX on generated file\e[0m -00:00:10 verbose #84 \e[4;7m16:14:40 [INFO] crowbook::book: Succesfully generated PDF: test.hangul.md.pdf\e[0m -00:00:10 verbose #85 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 351 -00:00:10 info #86 documents.run / result_len: 1 +00:00:00 debug #27 runtime.execute_with_options / file_name: crowbook / arguments: ["--verbose", "--to", "pdf", "--single", "c:/home/git/vault/target/documents/dist/test.hangul.md", "--output", "c:/home/git/vault/target/documents/dist/test.hangul.md.pdf", "--set", "tex.paper.size", "a4paper", "tex.template.add", "\\pagenumbering{gobble}", "tex.template.add", "\\usepackage{polyglossia}", "tex.template.add", "\\setmainlanguage{korean}", "tex.template.add", "\\setmainfont{NanumGothicCoding}", "tex.font.size", "12", "rendering.num_depth", "6", "rendering.highlight.theme", "Solarized (dark)"] / options: (None, "crowbook --verbose --to pdf --single "c:/home/git/vault/target/documents/dist/test.hangul.md" --output "c:/home/git/vault/target/documents/dist/test.hangul.md.pdf" --set tex.paper.size a4paper tex.template.add "\pagenumbering{gobble}" tex.template.add "\usepackage{polyglossia}" tex.template.add "\setmainlanguage{korean}" tex.template.add "\setmainfont{NanumGothicCoding}" tex.font.size 12 rendering.num_depth 6 rendering.highlight.theme \"Solarized (dark)\"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) +00:00:00 verbose #28 ! CROWBOOK 0.17.0 +00:00:00 verbose #29 ! 19:04:50 [DEBUG] (1) crowbook::book: Ignoring YAML block: +00:00:00 verbose #30 ! +00:00:00 verbose #31 ! 19:04:50 [DEBUG] (1) crowbook::book: Attempting to generate html... +00:00:00 verbose #32 ! 19:04:50 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"#link-1\">a</a>\n <ul>\n <li><a href=\"#link-2\">b</a></li>\n </ul>\n</li>" +00:00:00 verbose #33 ! 19:04:50 [INFO] crowbook::book: Succesfully generated HTML (standalone page): test.md.html +00:00:00 verbose #34 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 500 +00:00:01 verbose #35 ! CROWBOOK 0.17.0 +00:00:01 verbose #36 ! 19:04:50 [DEBUG] (1) crowbook::book: Ignoring YAML block: +00:00:01 verbose #37 ! +00:00:01 verbose #38 ! 19:04:50 [DEBUG] (1) crowbook::book: Attempting to generate html... +00:00:01 verbose #39 ! 19:04:50 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"#link-1\">?</a>\n <ul>\n <li><a href=\"#link-2\">?</a></li>\n </ul>\n</li>" +00:00:01 verbose #40 ! 19:04:50 [INFO] crowbook::book: Succesfully generated HTML (standalone page): test.hangul.md.html +00:00:01 verbose #41 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 507 +00:00:02 verbose #42 ! CROWBOOK 0.17.0 +00:00:02 verbose #43 ! 19:04:49 [DEBUG] (1) crowbook::book: Ignoring YAML block: +00:00:02 verbose #44 ! +00:00:02 verbose #45 ! 19:04:49 [DEBUG] (1) crowbook::book: Attempting to generate epub... +00:00:02 verbose #46 ! 19:04:50 [DEBUG] (1) epub_builder::epub: Add resource: "stylesheet.css" +00:00:02 verbose #47 ! 19:04:50 [DEBUG] (1) epub_builder::epub: render_opf... +00:00:02 verbose #48 ! 19:04:50 [DEBUG] (1) epub_builder::epub: id="title_page.xhtml", mime="application/xhtml+xml" +00:00:02 verbose #49 ! 19:04:50 [DEBUG] (1) epub_builder::epub: content = Content { file: "title_page.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(TitlePage), title: "Title" } +00:00:02 verbose #50 ! 19:04:50 [DEBUG] (1) epub_builder::epub: id="chapter_000.xhtml", mime="application/xhtml+xml" +00:00:02 verbose #51 ! 19:04:50 [DEBUG] (1) epub_builder::epub: content = Content { file: "chapter_000.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(Text), title: "a" } +00:00:02 verbose #52 ! 19:04:50 [DEBUG] (1) epub_builder::epub: id="stylesheet.css", mime="text/css" +00:00:02 verbose #53 ! 19:04:50 [DEBUG] (1) epub_builder::toc: rendered elem: "<li><a href=\"title_page.xhtml\">Title</a></li>" +00:00:02 verbose #54 ! 19:04:50 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"chapter_000.xhtml\">a</a>\n <ol>\n <li><a href=\"chapter_000.xhtml#link-2\">b</a></li>\n </ol>\n</li>" +00:00:02 verbose #55 ! 19:04:51 [INFO] crowbook::book: Succesfully generated EPUB: test.md.epub +00:00:02 verbose #56 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1562 +00:00:02 verbose #57 ! CROWBOOK 0.17.0 +00:00:02 verbose #58 ! 19:04:50 [DEBUG] (1) crowbook::book: Ignoring YAML block: +00:00:02 verbose #59 ! +00:00:02 verbose #60 ! 19:04:50 [DEBUG] (1) crowbook::book: Attempting to generate epub... +00:00:02 verbose #61 ! 19:04:50 [DEBUG] (1) epub_builder::epub: Add resource: "stylesheet.css" +00:00:02 verbose #62 ! 19:04:50 [DEBUG] (1) epub_builder::epub: render_opf... +00:00:02 verbose #63 ! 19:04:50 [DEBUG] (1) epub_builder::epub: id="title_page.xhtml", mime="application/xhtml+xml" +00:00:02 verbose #64 ! 19:04:50 [DEBUG] (1) epub_builder::epub: content = Content { file: "title_page.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(TitlePage), title: "Title" } +00:00:02 verbose #65 ! 19:04:50 [DEBUG] (1) epub_builder::epub: id="chapter_000.xhtml", mime="application/xhtml+xml" +00:00:02 verbose #66 ! 19:04:50 [DEBUG] (1) epub_builder::epub: content = Content { file: "chapter_000.xhtml", mime: "application/xhtml+xml", itemref: true, cover: false, reftype: Some(Text), title: "?" } +00:00:02 verbose #67 ! 19:04:50 [DEBUG] (1) epub_builder::epub: id="stylesheet.css", mime="text/css" +00:00:02 verbose #68 ! 19:04:50 [DEBUG] (1) epub_builder::toc: rendered elem: "<li><a href=\"title_page.xhtml\">Title</a></li>" +00:00:02 verbose #69 ! 19:04:50 [DEBUG] (1) epub_builder::toc: rendered elem: "<li>\n <a href=\"chapter_000.xhtml\">?</a>\n <ol>\n <li><a href=\"chapter_000.xhtml#link-2\">?</a></li>\n </ol>\n</li>" +00:00:02 verbose #70 ! 19:04:51 [INFO] crowbook::book: Succesfully generated EPUB: test.hangul.md.epub +00:00:02 verbose #71 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1569 +00:00:19 verbose #72 ! CROWBOOK 0.17.0 +00:00:19 verbose #73 ! 19:04:50 [DEBUG] (1) crowbook::book: Ignoring YAML block: +00:00:19 verbose #74 ! +00:00:19 verbose #75 ! 19:04:50 [DEBUG] (1) crowbook::book: Attempting to generate pdf... +00:00:19 verbose #76 ! 19:04:50 [DEBUG] (1) crowbook::latex: Attempting to run LaTeX on generated file +00:00:19 verbose #77 ! 19:05:08 [INFO] crowbook::book: Succesfully generated PDF: test.md.pdf +00:00:19 verbose #78 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 404 +00:00:19 verbose #79 ! CROWBOOK 0.17.0 +00:00:19 verbose #80 ! 19:04:50 [DEBUG] (1) crowbook::book: Ignoring YAML block: +00:00:19 verbose #81 ! +00:00:19 verbose #82 ! 19:04:50 [DEBUG] (1) crowbook::book: Attempting to generate pdf... +00:00:19 verbose #83 ! 19:04:50 [DEBUG] (1) crowbook::latex: Attempting to run LaTeX on generated file +00:00:19 verbose #84 ! 19:05:08 [INFO] crowbook::book: Succesfully generated PDF: test.hangul.md.pdf +00:00:19 verbose #85 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 411 +00:00:19 info #86 documents.run / result_len: 1 assert_eq / actual: "[Ok(("c:/home/git/vault/target/documents/dist/test.md", [Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md")), Some(Ok("c:/home/git/vault/target/documents/dist/test.md.html")), Some(Ok("c:/home/git/vault/target/documents/dist/test.md.pdf")), Some(Ok("c:/home/git/vault/target/documents/dist/test.md.epub")), Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md.html")), Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md.pdf")), Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md.epub"))]))]" / expected: "[Ok(("c:/home/git/vault/target/documents/dist/test.md", [Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md")), Some(Ok("c:/home/git/vault/target/documents/dist/test.md.html")), Some(Ok("c:/home/git/vault/target/documents/dist/test.md.pdf")), Some(Ok("c:/home/git/vault/target/documents/dist/test.md.epub")), Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md.html")), Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md.pdf")), Some(Ok("c:/home/git/vault/target/documents/dist/test.hangul.md.epub"))]))]" -00:00:10 verbose #87 file_system.create_directory / dir: C:\home\git\polyglot\../vault/target/documents\dist -00:00:10 debug #88 documents.run / source_dir: \\?\C:\home\git\vault\target\documents / dist_dir: \\?\C:\home\git\vault\target\documents\dist / cache_dir: \\?\C:\home\git\vault\target\documents\cache / hangul_spec: "por-br" -00:00:10 debug #89 documents.run / files_len: 1 -00:00:10 debug #90 runtime.execute_with_options / file_name: git / arguments: ["ls-tree", "--format='%(objectname)'", "origin/gh-pages", "c:/home/git/vault/target/documents/test.md"] / options: (None, "git ls-tree --format='%(objectname)' origin/gh-pages "c:/home/git/vault/target/documents/test.md"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents")) -00:00:10 verbose #91 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 0 -00:00:10 debug #92 runtime.execute_with_options / file_name: git / arguments: ["hash-object", "c:/home/git/vault/target/documents/dist/test.md"] / options: (None, "git hash-object "c:/home/git/vault/target/documents/dist/test.md"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) -00:00:10 verbose #93 ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b -00:00:10 verbose #94 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 40 -00:00:10 info #95 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md.epub" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md.epub -00:00:10 info #96 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md.pdf" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md.pdf -00:00:10 info #97 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md.html" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md.html -00:00:10 info #98 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.md.epub" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.md.epub -00:00:10 info #99 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.md.pdf" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.md.pdf -00:00:10 info #100 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.md.html" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.md.html -00:00:10 info #101 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md -00:00:10 info #102 documents.run / result_len: 1 +00:00:19 verbose #87 file_system.create_directory / dir: C:\home\git\polyglot\../vault/target/documents\dist +00:00:19 debug #88 documents.run / source_dir: \\?\C:\home\git\vault\target\documents / dist_dir: \\?\C:\home\git\vault\target\documents\dist / cache_dir: \\?\C:\home\git\vault\target\documents\cache / hangul_spec: "por-br" +00:00:19 debug #89 documents.run / files_len: 1 +00:00:19 debug #90 runtime.execute_with_options / file_name: git / arguments: ["ls-tree", "--format='%(objectname)'", "origin/gh-pages", "c:/home/git/vault/target/documents/test.md"] / options: (None, "git ls-tree --format='%(objectname)' origin/gh-pages "c:/home/git/vault/target/documents/test.md"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents")) +00:00:19 verbose #91 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 0 +00:00:19 debug #92 runtime.execute_with_options / file_name: git / arguments: ["hash-object", "c:/home/git/vault/target/documents/dist/test.md"] / options: (None, "git hash-object "c:/home/git/vault/target/documents/dist/test.md"", Array(MutCell([])), None, None, true, Some("\\?\C:\home\git\vault\target\documents\dist")) +00:00:19 verbose #93 > ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b +00:00:19 verbose #94 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 40 +00:00:19 info #95 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md.epub" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md.epub +00:00:19 info #96 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md.pdf" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md.pdf +00:00:19 info #97 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md.html" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md.html +00:00:19 info #98 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.md.epub" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.md.epub +00:00:19 info #99 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.md.pdf" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.md.pdf +00:00:19 info #100 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.md.html" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.md.html +00:00:19 info #101 documents.run / par_map / files' = [] / listm.iter / output_path: "c:/home/git/vault/target/documents/dist/test.hangul.md" / output_cache_path: \\?\C:\home\git\vault\target\documents\cache\test.hangul.md +00:00:19 info #102 documents.run / result_len: 1 assert_eq / actual: "[Ok(("c:/home/git/vault/target/documents/dist/test.md", []))]" / expected: "[Ok(("c:/home/git/vault/target/documents/dist/test.md", []))]" assert_eq / actual: "# ? diff --git a/apps/documents/documents.dib.ipynb b/apps/documents/documents.dib.ipynb index 085bbbf4..7d630efa 100644 --- a/apps/documents/documents.dib.ipynb +++ b/apps/documents/documents.dib.ipynb @@ -185,6 +185,8 @@ " | \"pdf\" =>\n", " $'$\"--set\"'\n", " +. $'$\" tex.paper.size a4paper\"'\n", + " +. $'$\" tex.template.add \\\\\\\"\\\\\\\\pagenumbering{{gobble}}\\\\\\\"\"'\n", + " // +. $'$\" tex.template.add \\\\\\\"\\\\\\\\pagestyle{{empty}}\\\\\\\"\"'\n", " +. (\n", " if hangul |> not\n", " then \"\"\n", @@ -621,101 +623,101 @@ "00:00:00 \u001B[94m debug\u001B[39m #6 runtime.execute_with_options / file_name: git / arguments: [\"ls-tree\", \"--format='%(objectname)'\", \"origin/gh-pages\", \"c:/home/git/vault/target/documents/test.md\"] / options: (None, \"git ls-tree --format='%(objectname)' origin/gh-pages \"c:/home/git/vault/target/documents/test.md\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\"))\n", "00:00:00 \u001B[90mverbose\u001B[39m #7 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 0\n", "00:00:00 \u001B[94m debug\u001B[39m #8 runtime.execute_with_options / file_name: git / arguments: [\"hash-object\", \"c:/home/git/vault/target/documents/dist/test.md\"] / options: (None, \"git hash-object \"c:/home/git/vault/target/documents/dist/test.md\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", - "00:00:00 \u001B[90mverbose\u001B[39m #9 ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b\n", + "00:00:00 \u001B[90mverbose\u001B[39m #9 > ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b\n", "00:00:00 \u001B[90mverbose\u001B[39m #10 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 40\n", "00:00:00 \u001B[92m info\u001B[39m #11 documents.run / par_map / origin_hash |> sm'.contains local_git_hash |> not / hash2 = None || hash1 <>. (hash2 |> optionm.value) / file: c:/home/git/vault/target/documents/dist/test.md / real_path: c:/home/git/vault/target/documents/test.md / relative_path: ./test.md / origin_hash_exit_code: 0 / origin_hash: / local_git_hash_exit_code: 0 / local_git_hash: ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b / hash1: f87ee09ec1dadc95e06e23bef39aa3185381d285bb9ca41a8a112061a6f504ec / hash2: US0_1 / dist_path: c:/home/git/vault/target/documents/dist/test.md / cache_path: c:/home/git/vault/target/documents/cache/test.md\n", "00:00:00 \u001B[94m debug\u001B[39m #12 runtime.execute_with_options / file_name: C:/home/git/polyglot/../vault/deps/hangulize/cmd/hangulize/hangulize.exe / arguments: [\"por-br\"] / options: (None, \"C:\\home\\git\\polyglot\\../vault/deps/hangulize/cmd/hangulize/hangulize.exe por-br\", Array(MutCell([])), None, Some(fable_library_rust::module_3bd9ae6a::FuncType::Func1>, ()>), true, None)\n", - "00:00:00 \u001B[90mverbose\u001B[39m #13 # ?\n", - "00:00:00 \u001B[90mverbose\u001B[39m #14 ## ?\n", - "00:00:00 \u001B[90mverbose\u001B[39m #15 ---\n", - "00:00:00 \u001B[90mverbose\u001B[39m #16 ???\n", - "00:00:00 \u001B[90mverbose\u001B[39m #17 ???\n", - "00:00:00 \u001B[90mverbose\u001B[39m #18 ???\n", - "00:00:00 \u001B[90mverbose\u001B[39m #19 ???\n", + "00:00:00 \u001B[90mverbose\u001B[39m #13 > # ?\n", + "00:00:00 \u001B[90mverbose\u001B[39m #14 > ## ?\n", + "00:00:00 \u001B[90mverbose\u001B[39m #15 > ---\n", + "00:00:00 \u001B[90mverbose\u001B[39m #16 > ???\n", + "00:00:00 \u001B[90mverbose\u001B[39m #17 > ???\n", + "00:00:00 \u001B[90mverbose\u001B[39m #18 > ???\n", + "00:00:00 \u001B[90mverbose\u001B[39m #19 > ???\n", "00:00:00 \u001B[90mverbose\u001B[39m #20 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 28\n", "00:00:00 \u001B[92m info\u001B[39m #21 documents.hangul / exit_code: 0 / result_len: 34 / output_path: c:/home/git/vault/target/documents/dist/test.hangul.md\n", - "00:00:00 \u001B[94m debug\u001B[39m #22 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"pdf\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.md.pdf\", \"--set\", \"tex.paper.size\", \"a4paper\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to pdf --single \"c:/home/git/vault/target/documents/dist/test.md\" --output \"c:/home/git/vault/target/documents/dist/test.md.pdf\" --set tex.paper.size a4paper rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", + "00:00:00 \u001B[94m debug\u001B[39m #22 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"pdf\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.md.pdf\", \"--set\", \"tex.paper.size\", \"a4paper\", \"tex.template.add\", \"\\\\pagenumbering{gobble}\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to pdf --single \"c:/home/git/vault/target/documents/dist/test.md\" --output \"c:/home/git/vault/target/documents/dist/test.md.pdf\" --set tex.paper.size a4paper tex.template.add \"\\pagenumbering{gobble}\" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", "00:00:00 \u001B[94m debug\u001B[39m #23 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"epub\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.md.epub\", \"--set\", \"epub.version\", \"3\", \"html.css.add\", \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to epub --single \"c:/home/git/vault/target/documents/dist/test.md\" --output \"c:/home/git/vault/target/documents/dist/test.md.epub\" --set epub.version 3 html.css.add \\\"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\\\" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", - "00:00:00 \u001B[94m debug\u001B[39m #24 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"html\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.md.html\", \"--set\", \"html.css.add\", \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to html --single \"c:/home/git/vault/target/documents/dist/test.md\" --output \"c:/home/git/vault/target/documents/dist/test.md.html\" --set html.css.add \\\"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\\\" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", + "00:00:00 \u001B[94m debug\u001B[39m #24 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"epub\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.hangul.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\", \"--set\", \"epub.version\", \"3\", \"html.css.add\", \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to epub --single \"c:/home/git/vault/target/documents/dist/test.hangul.md\" --output \"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\" --set epub.version 3 html.css.add \\\"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\\\" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", + "00:00:00 \u001B[94m debug\u001B[39m #25 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"html\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.md.html\", \"--set\", \"html.css.add\", \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to html --single \"c:/home/git/vault/target/documents/dist/test.md\" --output \"c:/home/git/vault/target/documents/dist/test.md.html\" --set html.css.add \\\"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\\\" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", "00:00:00 \u001B[94m debug\u001B[39m #26 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"html\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.hangul.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.hangul.md.html\", \"--set\", \"html.css.add\", \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to html --single \"c:/home/git/vault/target/documents/dist/test.hangul.md\" --output \"c:/home/git/vault/target/documents/dist/test.hangul.md.html\" --set html.css.add \\\"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } pre { background-color: #1b1b1b; padding: 10px; } '\\\" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", - "00:00:00 \u001B[94m debug\u001B[39m #26 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"epub\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.hangul.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\", \"--set\", \"epub.version\", \"3\", \"html.css.add\", \"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to epub --single \"c:/home/git/vault/target/documents/dist/test.hangul.md\" --output \"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\" --set epub.version 3 html.css.add \\\"' body { color: #e8e6e3; background-color: #202324; } a { color: #989693; } '\\\" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", - "00:00:00 \u001B[94m debug\u001B[39m #27 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"pdf\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.hangul.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\", \"--set\", \"tex.paper.size\", \"a4paper\", \"tex.template.add\", \"\\\\usepackage{polyglossia}\", \"tex.template.add\", \"\\\\setmainlanguage{korean}\", \"tex.template.add\", \"\\\\setmainfont{NanumGothicCoding}\", \"tex.font.size\", \"12\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to pdf --single \"c:/home/git/vault/target/documents/dist/test.hangul.md\" --output \"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\" --set tex.paper.size a4paper tex.template.add \"\\usepackage{polyglossia}\" tex.template.add \"\\setmainlanguage{korean}\" tex.template.add \"\\setmainfont{NanumGothicCoding}\" tex.font.size 12 rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", - "00:00:00 \u001B[90mverbose\u001B[39m #28 \\e[4;7mCROWBOOK 0.17.0\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #29 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #30 \\e[4;7m\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #31 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate html...\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #32 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n a\\n
      \\n
    • b
    • \\n
    \\n
  • \"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #33 \\e[4;7m16:14:30 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated HTML (standalone page): test.md.html\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #34 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 440\n", - "00:00:00 \u001B[90mverbose\u001B[39m #35 \\e[4;7mCROWBOOK 0.17.0\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #36 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #37 \\e[4;7m\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #38 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate html...\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #39 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n ?\\n
      \\n
    • ?
    • \\n
    \\n
  • \"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #40 \\e[4;7m16:14:30 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated HTML (standalone page): test.hangul.md.html\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #41 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 447\n", - "00:00:00 \u001B[90mverbose\u001B[39m #42 \\e[4;7mCROWBOOK 0.17.0\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #43 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #44 \\e[4;7m\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #45 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate epub...\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #46 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: Add resource: \"stylesheet.css\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #47 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: render_opf...\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #48 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"title_page.xhtml\", mime=\"application/xhtml+xml\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #49 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"title_page.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(TitlePage), title: \"Title\" }\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #50 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"chapter_000.xhtml\", mime=\"application/xhtml+xml\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #51 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"chapter_000.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(Text), title: \"a\" }\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #52 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"stylesheet.css\", mime=\"text/css\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #53 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • Title
  • \"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #54 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n a\\n
      \\n
    1. b
    2. \\n
    \\n
  • \"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #55 \\e[4;7m16:14:30 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated EPUB: test.md.epub\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #56 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1422\n", - "00:00:00 \u001B[90mverbose\u001B[39m #57 \\e[4;7mCROWBOOK 0.17.0\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #58 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #59 \\e[4;7m\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #60 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate epub...\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #61 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: Add resource: \"stylesheet.css\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #62 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: render_opf...\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #63 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"title_page.xhtml\", mime=\"application/xhtml+xml\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #64 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"title_page.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(TitlePage), title: \"Title\" }\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #65 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"chapter_000.xhtml\", mime=\"application/xhtml+xml\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #66 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"chapter_000.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(Text), title: \"?\" }\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #67 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"stylesheet.css\", mime=\"text/css\"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #68 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • Title
  • \"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #69 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n ?\\n
      \\n
    1. ?
    2. \\n
    \\n
  • \"\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #70 \\e[4;7m16:14:30 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated EPUB: test.hangul.md.epub\\e[0m\n", - "00:00:00 \u001B[90mverbose\u001B[39m #71 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1429\n", - "00:00:10 \u001B[90mverbose\u001B[39m #72 \\e[4;7mCROWBOOK 0.17.0\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #73 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #74 \\e[4;7m\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #75 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate pdf...\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #76 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::latex: Attempting to run LaTeX on generated file\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #77 \\e[4;7m16:14:40 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated PDF: test.md.pdf\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #78 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 344\n", - "00:00:10 \u001B[90mverbose\u001B[39m #79 \\e[4;7mCROWBOOK 0.17.0\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #80 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #81 \\e[4;7m\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #82 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate pdf...\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #83 \\e[4;7m16:14:30 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::latex: Attempting to run LaTeX on generated file\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #84 \\e[4;7m16:14:40 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated PDF: test.hangul.md.pdf\\e[0m\n", - "00:00:10 \u001B[90mverbose\u001B[39m #85 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 351\n", - "00:00:10 \u001B[92m info\u001B[39m #86 documents.run / result_len: 1\n", + "00:00:00 \u001B[94m debug\u001B[39m #27 runtime.execute_with_options / file_name: crowbook / arguments: [\"--verbose\", \"--to\", \"pdf\", \"--single\", \"c:/home/git/vault/target/documents/dist/test.hangul.md\", \"--output\", \"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\", \"--set\", \"tex.paper.size\", \"a4paper\", \"tex.template.add\", \"\\\\pagenumbering{gobble}\", \"tex.template.add\", \"\\\\usepackage{polyglossia}\", \"tex.template.add\", \"\\\\setmainlanguage{korean}\", \"tex.template.add\", \"\\\\setmainfont{NanumGothicCoding}\", \"tex.font.size\", \"12\", \"rendering.num_depth\", \"6\", \"rendering.highlight.theme\", \"Solarized (dark)\"] / options: (None, \"crowbook --verbose --to pdf --single \"c:/home/git/vault/target/documents/dist/test.hangul.md\" --output \"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\" --set tex.paper.size a4paper tex.template.add \"\\pagenumbering{gobble}\" tex.template.add \"\\usepackage{polyglossia}\" tex.template.add \"\\setmainlanguage{korean}\" tex.template.add \"\\setmainfont{NanumGothicCoding}\" tex.font.size 12 rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", + "00:00:00 \u001B[90mverbose\u001B[39m #28 ! CROWBOOK 0.17.0\n", + "00:00:00 \u001B[90mverbose\u001B[39m #29 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\n", + "00:00:00 \u001B[90mverbose\u001B[39m #30 !\n", + "00:00:00 \u001B[90mverbose\u001B[39m #31 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate html...\n", + "00:00:00 \u001B[90mverbose\u001B[39m #32 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n a\\n
      \\n
    • b
    • \\n
    \\n
  • \"\n", + "00:00:00 \u001B[90mverbose\u001B[39m #33 ! 19:04:50 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated HTML (standalone page): test.md.html\n", + "00:00:00 \u001B[90mverbose\u001B[39m #34 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 500\n", + "00:00:01 \u001B[90mverbose\u001B[39m #35 ! CROWBOOK 0.17.0\n", + "00:00:01 \u001B[90mverbose\u001B[39m #36 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\n", + "00:00:01 \u001B[90mverbose\u001B[39m #37 !\n", + "00:00:01 \u001B[90mverbose\u001B[39m #38 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate html...\n", + "00:00:01 \u001B[90mverbose\u001B[39m #39 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n ?\\n
      \\n
    • ?
    • \\n
    \\n
  • \"\n", + "00:00:01 \u001B[90mverbose\u001B[39m #40 ! 19:04:50 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated HTML (standalone page): test.hangul.md.html\n", + "00:00:01 \u001B[90mverbose\u001B[39m #41 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 507\n", + "00:00:02 \u001B[90mverbose\u001B[39m #42 ! CROWBOOK 0.17.0\n", + "00:00:02 \u001B[90mverbose\u001B[39m #43 ! 19:04:49 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\n", + "00:00:02 \u001B[90mverbose\u001B[39m #44 !\n", + "00:00:02 \u001B[90mverbose\u001B[39m #45 ! 19:04:49 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate epub...\n", + "00:00:02 \u001B[90mverbose\u001B[39m #46 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: Add resource: \"stylesheet.css\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #47 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: render_opf...\n", + "00:00:02 \u001B[90mverbose\u001B[39m #48 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"title_page.xhtml\", mime=\"application/xhtml+xml\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #49 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"title_page.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(TitlePage), title: \"Title\" }\n", + "00:00:02 \u001B[90mverbose\u001B[39m #50 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"chapter_000.xhtml\", mime=\"application/xhtml+xml\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #51 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"chapter_000.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(Text), title: \"a\" }\n", + "00:00:02 \u001B[90mverbose\u001B[39m #52 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"stylesheet.css\", mime=\"text/css\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #53 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • Title
  • \"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #54 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n a\\n
      \\n
    1. b
    2. \\n
    \\n
  • \"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #55 ! 19:04:51 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated EPUB: test.md.epub\n", + "00:00:02 \u001B[90mverbose\u001B[39m #56 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1562\n", + "00:00:02 \u001B[90mverbose\u001B[39m #57 ! CROWBOOK 0.17.0\n", + "00:00:02 \u001B[90mverbose\u001B[39m #58 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\n", + "00:00:02 \u001B[90mverbose\u001B[39m #59 !\n", + "00:00:02 \u001B[90mverbose\u001B[39m #60 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate epub...\n", + "00:00:02 \u001B[90mverbose\u001B[39m #61 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: Add resource: \"stylesheet.css\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #62 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: render_opf...\n", + "00:00:02 \u001B[90mverbose\u001B[39m #63 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"title_page.xhtml\", mime=\"application/xhtml+xml\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #64 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"title_page.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(TitlePage), title: \"Title\" }\n", + "00:00:02 \u001B[90mverbose\u001B[39m #65 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"chapter_000.xhtml\", mime=\"application/xhtml+xml\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #66 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: content = Content { file: \"chapter_000.xhtml\", mime: \"application/xhtml+xml\", itemref: true, cover: false, reftype: Some(Text), title: \"?\" }\n", + "00:00:02 \u001B[90mverbose\u001B[39m #67 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::epub: id=\"stylesheet.css\", mime=\"text/css\"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #68 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • Title
  • \"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #69 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) epub_builder::toc: rendered elem: \"
  • \\n ?\\n
      \\n
    1. ?
    2. \\n
    \\n
  • \"\n", + "00:00:02 \u001B[90mverbose\u001B[39m #70 ! 19:04:51 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated EPUB: test.hangul.md.epub\n", + "00:00:02 \u001B[90mverbose\u001B[39m #71 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 1569\n", + "00:00:19 \u001B[90mverbose\u001B[39m #72 ! CROWBOOK 0.17.0\n", + "00:00:19 \u001B[90mverbose\u001B[39m #73 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\n", + "00:00:19 \u001B[90mverbose\u001B[39m #74 !\n", + "00:00:19 \u001B[90mverbose\u001B[39m #75 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate pdf...\n", + "00:00:19 \u001B[90mverbose\u001B[39m #76 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::latex: Attempting to run LaTeX on generated file\n", + "00:00:19 \u001B[90mverbose\u001B[39m #77 ! 19:05:08 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated PDF: test.md.pdf\n", + "00:00:19 \u001B[90mverbose\u001B[39m #78 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 404\n", + "00:00:19 \u001B[90mverbose\u001B[39m #79 ! CROWBOOK 0.17.0\n", + "00:00:19 \u001B[90mverbose\u001B[39m #80 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Ignoring YAML block:\n", + "00:00:19 \u001B[90mverbose\u001B[39m #81 !\n", + "00:00:19 \u001B[90mverbose\u001B[39m #82 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::book: Attempting to generate pdf...\n", + "00:00:19 \u001B[90mverbose\u001B[39m #83 ! 19:04:50 \u001B[0m\u001B[36m[DEBUG] \u001B[0m(1) crowbook::latex: Attempting to run LaTeX on generated file\n", + "00:00:19 \u001B[90mverbose\u001B[39m #84 ! 19:05:08 \u001B[0m\u001B[34m[INFO] \u001B[0mcrowbook::book: Succesfully generated PDF: test.hangul.md.pdf\n", + "00:00:19 \u001B[90mverbose\u001B[39m #85 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 411\n", + "00:00:19 \u001B[92m info\u001B[39m #86 documents.run / result_len: 1\n", "assert_eq / actual: \"[Ok((\"c:/home/git/vault/target/documents/dist/test.md\", [Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.md.html\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.md.pdf\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.md.epub\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md.html\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\"))]))]\" / expected: \"[Ok((\"c:/home/git/vault/target/documents/dist/test.md\", [Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.md.html\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.md.pdf\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.md.epub\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md.html\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\")), Some(Ok(\"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\"))]))]\"\n", - "00:00:10 \u001B[90mverbose\u001B[39m #87 file_system.create_directory / dir: C:\\home\\git\\polyglot\\../vault/target/documents\\dist\n", - "00:00:10 \u001B[94m debug\u001B[39m #88 documents.run / source_dir: \\\\?\\C:\\home\\git\\vault\\target\\documents / dist_dir: \\\\?\\C:\\home\\git\\vault\\target\\documents\\dist / cache_dir: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache / hangul_spec: \"por-br\"\n", - "00:00:10 \u001B[94m debug\u001B[39m #89 documents.run / files_len: 1\n", - "00:00:10 \u001B[94m debug\u001B[39m #90 runtime.execute_with_options / file_name: git / arguments: [\"ls-tree\", \"--format='%(objectname)'\", \"origin/gh-pages\", \"c:/home/git/vault/target/documents/test.md\"] / options: (None, \"git ls-tree --format='%(objectname)' origin/gh-pages \"c:/home/git/vault/target/documents/test.md\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\"))\n", - "00:00:10 \u001B[90mverbose\u001B[39m #91 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 0\n", - "00:00:10 \u001B[94m debug\u001B[39m #92 runtime.execute_with_options / file_name: git / arguments: [\"hash-object\", \"c:/home/git/vault/target/documents/dist/test.md\"] / options: (None, \"git hash-object \"c:/home/git/vault/target/documents/dist/test.md\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", - "00:00:10 \u001B[90mverbose\u001B[39m #93 ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b\n", - "00:00:10 \u001B[90mverbose\u001B[39m #94 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 40\n", - "00:00:10 \u001B[92m info\u001B[39m #95 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md.epub\n", - "00:00:10 \u001B[92m info\u001B[39m #96 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md.pdf\n", - "00:00:10 \u001B[92m info\u001B[39m #97 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md.html\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md.html\n", - "00:00:10 \u001B[92m info\u001B[39m #98 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.md.epub\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.md.epub\n", - "00:00:10 \u001B[92m info\u001B[39m #99 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.md.pdf\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.md.pdf\n", - "00:00:10 \u001B[92m info\u001B[39m #100 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.md.html\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.md.html\n", - "00:00:10 \u001B[92m info\u001B[39m #101 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md\n", - "00:00:10 \u001B[92m info\u001B[39m #102 documents.run / result_len: 1\n", + "00:00:19 \u001B[90mverbose\u001B[39m #87 file_system.create_directory / dir: C:\\home\\git\\polyglot\\../vault/target/documents\\dist\n", + "00:00:19 \u001B[94m debug\u001B[39m #88 documents.run / source_dir: \\\\?\\C:\\home\\git\\vault\\target\\documents / dist_dir: \\\\?\\C:\\home\\git\\vault\\target\\documents\\dist / cache_dir: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache / hangul_spec: \"por-br\"\n", + "00:00:19 \u001B[94m debug\u001B[39m #89 documents.run / files_len: 1\n", + "00:00:19 \u001B[94m debug\u001B[39m #90 runtime.execute_with_options / file_name: git / arguments: [\"ls-tree\", \"--format='%(objectname)'\", \"origin/gh-pages\", \"c:/home/git/vault/target/documents/test.md\"] / options: (None, \"git ls-tree --format='%(objectname)' origin/gh-pages \"c:/home/git/vault/target/documents/test.md\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\"))\n", + "00:00:19 \u001B[90mverbose\u001B[39m #91 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 0\n", + "00:00:19 \u001B[94m debug\u001B[39m #92 runtime.execute_with_options / file_name: git / arguments: [\"hash-object\", \"c:/home/git/vault/target/documents/dist/test.md\"] / options: (None, \"git hash-object \"c:/home/git/vault/target/documents/dist/test.md\"\", Array(MutCell([])), None, None, true, Some(\"\\\\?\\C:\\home\\git\\vault\\target\\documents\\dist\"))\n", + "00:00:19 \u001B[90mverbose\u001B[39m #93 > ba0ba7eb68b2a508ff0525bcbb91bd5ebc95e71b\n", + "00:00:19 \u001B[90mverbose\u001B[39m #94 runtime.execute_with_options / result / exit_code: 0 / std_trace.Length: 40\n", + "00:00:19 \u001B[92m info\u001B[39m #95 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md.epub\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md.epub\n", + "00:00:19 \u001B[92m info\u001B[39m #96 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md.pdf\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md.pdf\n", + "00:00:19 \u001B[92m info\u001B[39m #97 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md.html\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md.html\n", + "00:00:19 \u001B[92m info\u001B[39m #98 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.md.epub\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.md.epub\n", + "00:00:19 \u001B[92m info\u001B[39m #99 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.md.pdf\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.md.pdf\n", + "00:00:19 \u001B[92m info\u001B[39m #100 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.md.html\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.md.html\n", + "00:00:19 \u001B[92m info\u001B[39m #101 documents.run / par_map / files' = [] / listm.iter / output_path: \"c:/home/git/vault/target/documents/dist/test.hangul.md\" / output_cache_path: \\\\?\\C:\\home\\git\\vault\\target\\documents\\cache\\test.hangul.md\n", + "00:00:19 \u001B[92m info\u001B[39m #102 documents.run / result_len: 1\n", "assert_eq / actual: \"[Ok((\"c:/home/git/vault/target/documents/dist/test.md\", []))]\" / expected: \"[Ok((\"c:/home/git/vault/target/documents/dist/test.md\", []))]\"\n", "assert_eq / actual: \"# ?\n", "\n", @@ -756,7 +758,7 @@ ], "source": [ "//// test\n", - "///! rust -d async-walkdir encoding_rs encoding_rs_io futures-lite rayon regex sha2\n", + "///! rust -d async-std async-walkdir encoding_rs encoding_rs_io futures futures-lite rayon regex sha2\n", "\n", "types ()\n", "inl workspace_root = file_system.get_workspace_root ()\n", diff --git a/apps/documents/documents.fsx b/apps/documents/documents.fsx index 9c1b48aa..e26b06a8 100644 --- a/apps/documents/documents.fsx +++ b/apps/documents/documents.fsx @@ -11,13 +11,13 @@ type Slice'<'T> = class end #endif type Vec<'T> = class end #if FABLE_COMPILER -[")>] +[")>] #endif -type std_future_Future<'T> = class end +type async_std_task_JoinHandle<'T> = class end #if FABLE_COMPILER -[")>] +[")>] #endif -type futures_future_TryJoinAll<'T> = class end +type std_future_Future<'T> = class end #if FABLE_COMPILER [")>] #endif @@ -31,9 +31,21 @@ type rayon_iter_Map<'T> = class end #endif type futures_lite_stream_StreamExt = class end #if FABLE_COMPILER -[] +[")>] #endif -type Any = class end +type futures_future_TryJoinAll<'T> = class end +#if FABLE_COMPILER +[")>] +#endif +type futures_future_Fuse<'T> = class end +#if FABLE_COMPILER +[")>] +#endif +type futures_future_JoinAll<'T> = class end +#if FABLE_COMPILER +[] +#endif +type core_any_Any = class end #if FABLE_COMPILER [")>] #endif @@ -51,7 +63,7 @@ type Box<'T> = class end #endif type Dyn<'T> = class end #if FABLE_COMPILER -[] +[] #endif type Send<'T> = class end #if FABLE_COMPILER @@ -87,9 +99,21 @@ type Mut<'T> = class end #endif type Ref<'T> = class end #if FABLE_COMPILER -[] +[] +#endif +type LifetimeJoin<'T, 'U> = class end +#if FABLE_COMPILER +[] +#endif +type StaticLifetime = class end +#if FABLE_COMPILER +[] #endif -type StaticRef<'T> = class end +type LifetimeRef<'T> = class end +#if FABLE_COMPILER +[] +#endif +type Lifetime<'T, 'U> = class end #if FABLE_COMPILER [")>] #endif @@ -347,6 +371,10 @@ type std_process_ChildStdin = class end #endif type std_process_Command = class end #if FABLE_COMPILER +[] +#endif +type std_process_ExitStatus = class end +#if FABLE_COMPILER [] #endif type std_process_Output = class end @@ -359,6 +387,10 @@ type std_process_Stdio = class end #endif type std_sync_mpsc_Receiver<'T> = class end #if FABLE_COMPILER +[")>] +#endif +type std_sync_mpsc_SendError<'T> = class end +#if FABLE_COMPILER [")>] #endif type std_sync_mpsc_Sender<'T> = class end @@ -471,18 +503,18 @@ and Mut8 = {mutable l0 : int32; mutable l1 : Vec = Fable.Core.RustInterop.emitRustExpr () v1 + let v2 : Ref> = Fable.Core.RustInterop.emitRustExpr () v1 let v3 : string = "clap::Command::new($0)" let v4 : clap_Command = Fable.Core.RustInterop.emitRustExpr v2 v3 let v5 : string = "source-dir" let v6 : string = "r#\"" + v5 + "\"#" - let v7 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v6 + let v7 : Ref> = Fable.Core.RustInterop.emitRustExpr () v6 let v8 : string = "clap::Arg::new($0)" let v9 : clap_Arg = Fable.Core.RustInterop.emitRustExpr v7 v8 let v10 : string = "$0.short($1)" let v11 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v9, 's') v10 let v12 : string = "r#\"" + v5 + "\"#" - let v13 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v12 + let v13 : Ref> = Fable.Core.RustInterop.emitRustExpr () v12 let v14 : string = "$0.long($1)" let v15 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v11, v13) v14 let v16 : string = "$0.required($1)" @@ -491,13 +523,13 @@ let rec method0 () : clap_Command = let v19 : clap_Command = Fable.Core.RustInterop.emitRustExpr struct (v4, v17) v18 let v20 : string = "dist-dir" let v21 : string = "r#\"" + v20 + "\"#" - let v22 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v21 + let v22 : Ref> = Fable.Core.RustInterop.emitRustExpr () v21 let v23 : string = "clap::Arg::new($0)" let v24 : clap_Arg = Fable.Core.RustInterop.emitRustExpr v22 v23 let v25 : string = "$0.short($1)" let v26 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v24, 'd') v25 let v27 : string = "r#\"" + v20 + "\"#" - let v28 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v27 + let v28 : Ref> = Fable.Core.RustInterop.emitRustExpr () v27 let v29 : string = "$0.long($1)" let v30 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v26, v28) v29 let v31 : string = "$0.required($1)" @@ -506,13 +538,13 @@ let rec method0 () : clap_Command = let v34 : clap_Command = Fable.Core.RustInterop.emitRustExpr struct (v19, v32) v33 let v35 : string = "cache-dir" let v36 : string = "r#\"" + v35 + "\"#" - let v37 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v36 + let v37 : Ref> = Fable.Core.RustInterop.emitRustExpr () v36 let v38 : string = "clap::Arg::new($0)" let v39 : clap_Arg = Fable.Core.RustInterop.emitRustExpr v37 v38 let v40 : string = "$0.short($1)" let v41 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v39, 'c') v40 let v42 : string = "r#\"" + v35 + "\"#" - let v43 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v42 + let v43 : Ref> = Fable.Core.RustInterop.emitRustExpr () v42 let v44 : string = "$0.long($1)" let v45 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v41, v43) v44 let v46 : string = "$0.required($1)" @@ -521,13 +553,13 @@ let rec method0 () : clap_Command = let v49 : clap_Command = Fable.Core.RustInterop.emitRustExpr struct (v34, v47) v48 let v50 : string = "hangul-spec" let v51 : string = "r#\"" + v50 + "\"#" - let v52 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v51 + let v52 : Ref> = Fable.Core.RustInterop.emitRustExpr () v51 let v53 : string = "clap::Arg::new($0)" let v54 : clap_Arg = Fable.Core.RustInterop.emitRustExpr v52 v53 let v55 : string = "$0.short($1)" let v56 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v54, 's') v55 let v57 : string = "r#\"" + v50 + "\"#" - let v58 : StaticRef = Fable.Core.RustInterop.emitRustExpr () v57 + let v58 : Ref> = Fable.Core.RustInterop.emitRustExpr () v57 let v59 : string = "$0.long($1)" let v60 : clap_Arg = Fable.Core.RustInterop.emitRustExpr struct (v56, v58) v59 let v61 : string = "$0.required($1)" @@ -1525,12 +1557,12 @@ and method30 (v0 : std_fs_FileType) : std_fs_FileType = v0 and method31 (v0 : US4) : US4 = v0 -and method27 (v0 : async_walkdir_DirEntry) : std_pin_Pin>>>> = +and method27 (v0 : async_walkdir_DirEntry) : std_pin_Pin>, Send>>>>> = let v1 : string = "let __result = Box::pin(async move { //" Fable.Core.RustInterop.emitRustExpr () v1 let v2 : async_walkdir_DirEntry = method28(v0) let v3 : string = "Box::pin(async_walkdir::DirEntry::file_type(&v2))" - let v4 : std_pin_Pin>>>>> = Fable.Core.RustInterop.emitRustExpr () v3 + let v4 : std_pin_Pin>>, Send>>>>>> = Fable.Core.RustInterop.emitRustExpr () v3 let v5 : string = "v4.await" let v6 : Result = Fable.Core.RustInterop.emitRustExpr () v5 let v7 : (std_io_Error -> std_string_String) = method29() @@ -1663,14 +1695,14 @@ and method27 (v0 : async_walkdir_DirEntry) : std_pin_Pin>>>> = Fable.Core.RustInterop.emitRustExpr () v75 + let v76 : std_pin_Pin>, Send>>>>> = Fable.Core.RustInterop.emitRustExpr () v75 v76 and method32 (v0 : async_walkdir_Filtering) : async_walkdir_Filtering = v0 -and method26 (v0 : async_walkdir_DirEntry) : std_pin_Pin>>>> = +and method26 (v0 : async_walkdir_DirEntry) : std_pin_Pin>, Send>>>>> = let v1 : string = "let __result = Box::pin(async { //" Fable.Core.RustInterop.emitRustExpr () v1 - let v2 : std_pin_Pin>>>> = method27(v0) + let v2 : std_pin_Pin>, Send>>>>> = method27(v0) let v3 : string = "v2.await" let v4 : US4 = Fable.Core.RustInterop.emitRustExpr () v3 let v13 : async_walkdir_Filtering = @@ -1693,9 +1725,9 @@ and method26 (v0 : async_walkdir_DirEntry) : std_pin_Pin>>>> = Fable.Core.RustInterop.emitRustExpr () v17 + let v18 : std_pin_Pin>, Send>>>>> = Fable.Core.RustInterop.emitRustExpr () v17 v18 -and closure11 () (v0 : async_walkdir_DirEntry) : std_pin_Pin>>>> = +and closure11 () (v0 : async_walkdir_DirEntry) : std_pin_Pin>, Send>>>>> = method26(v0) and closure16 () (v0 : async_walkdir_DirEntry) : US6 = US6_0(v0) @@ -4430,19 +4462,19 @@ and closure31 (v0 : bool, v1 : std_sync_Arc US12) = closure32() let v8 : (std_string_String -> US12) = closure33() let v9 : US12 = match v6 with Ok x -> v7 x | Error x -> v8 x - let v40 : std_string_String = + let v41 : std_string_String = match v9 with - | US12_1(v30) -> (* Error *) - let v31 : US0 = US0_4 - let v32 : (unit -> string) = closure34() - let v33 : (unit -> string) = closure35(v30) - method3(v31, v32, v33) - let v34 : string = $"\e[4;7m{v30}\e[0m" - let v35 : string = "&*$0" - let v36 : Ref = Fable.Core.RustInterop.emitRustExpr v34 v35 - let v37 : string = "String::from($0)" - let v38 : std_string_String = Fable.Core.RustInterop.emitRustExpr v36 v37 - v38 + | US12_1(v31) -> (* Error *) + let v32 : US0 = US0_4 + let v33 : (unit -> string) = closure34() + let v34 : (unit -> string) = closure35(v31) + method3(v32, v33, v34) + let v35 : string = $"\u001b[4;7m{v31}\u001b[0m" + let v36 : string = "&*$0" + let v37 : Ref = Fable.Core.RustInterop.emitRustExpr v35 v36 + let v38 : string = "String::from($0)" + let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr v37 v38 + v39 | US12_0(v10) -> (* Ok *) let v11 : string = "fable_library_rust::String_::fromString($0)" let v12 : string = Fable.Core.RustInterop.emitRustExpr v10 v11 @@ -4460,17 +4492,26 @@ and closure31 (v0 : bool, v1 : std_sync_Arc {v26}" if v0 then - let v27 : US0 = US0_0 - let v28 : (unit -> string) = closure36(v26) - let v29 : (unit -> string) = closure6() - method3(v27, v28, v29) + let v28 : US0 = US0_0 + let v29 : (unit -> string) = closure36(v27) + let v30 : (unit -> string) = closure6() + method3(v28, v29, v30) else - System.Console.WriteLine v26 + System.Console.WriteLine v27 () v24 - let v41 : string = "true; $0.lock().unwrap().send($1).unwrap()" - let v42 : bool = Fable.Core.RustInterop.emitRustExpr struct (v1, v40) v41 + let v42 : string = "$0.lock()" + let v43 : Result>, std_sync_PoisonError>>> = Fable.Core.RustInterop.emitRustExpr v1 v42 + let v44 : string = "$0.unwrap()" + let v45 : std_sync_MutexGuard> = Fable.Core.RustInterop.emitRustExpr v43 v44 + let v46 : string = "&$0" + let v47 : Ref> = Fable.Core.RustInterop.emitRustExpr v45 v46 + let v48 : string = "$0.send($1)" + let v49 : Result> = Fable.Core.RustInterop.emitRustExpr struct (v47, v41) v48 + let v50 : string = "$0.unwrap()" + Fable.Core.RustInterop.emitRustExpr v49 v50 () #endif #if FABLE_COMPILER_RUST && WASM @@ -4496,6 +4537,8 @@ and closure31 (v0 : bool, v1 : std_sync_Arc fun x -> _v3 <- Some x _v3.Value () +and method46 () : bool = + true and closure37 (v0 : bool, v1 : std_sync_Arc>>) (v2 : Result) : unit = let v3 : bool = true let mutable _v3 : unit option = None @@ -4509,19 +4552,19 @@ and closure37 (v0 : bool, v1 : std_sync_Arc US12) = closure32() let v8 : (std_string_String -> US12) = closure33() let v9 : US12 = match v6 with Ok x -> v7 x | Error x -> v8 x - let v41 : std_string_String = + let v46 : std_string_String = match v9 with - | US12_1(v31) -> (* Error *) - let v32 : US0 = US0_4 - let v33 : (unit -> string) = closure34() - let v34 : (unit -> string) = closure35(v31) - method3(v32, v33, v34) - let v35 : string = $"\e[4;7m{v31}\e[0m" - let v36 : string = "&*$0" - let v37 : Ref = Fable.Core.RustInterop.emitRustExpr v35 v36 - let v38 : string = "String::from($0)" - let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr v37 v38 - v39 + | US12_1(v36) -> (* Error *) + let v37 : US0 = US0_4 + let v38 : (unit -> string) = closure34() + let v39 : (unit -> string) = closure35(v36) + method3(v37, v38, v39) + let v40 : string = $"\u001b[4;7m{v36}\u001b[0m" + let v41 : string = "&*$0" + let v42 : Ref = Fable.Core.RustInterop.emitRustExpr v40 v41 + let v43 : string = "String::from($0)" + let v44 : std_string_String = Fable.Core.RustInterop.emitRustExpr v42 v43 + v44 | US12_0(v10) -> (* Ok *) let v11 : string = "fable_library_rust::String_::fromString($0)" let v12 : string = Fable.Core.RustInterop.emitRustExpr v10 v11 @@ -4539,7 +4582,7 @@ and closure37 (v0 : bool, v1 : std_sync_Arc string) = closure36(v27) @@ -4548,9 +4591,22 @@ and closure37 (v0 : bool, v1 : std_sync_Arc = Fable.Core.RustInterop.emitRustExpr v31 v32 + let v34 : string = "String::from($0)" + let v35 : std_string_String = Fable.Core.RustInterop.emitRustExpr v33 v34 + v35 + let v47 : string = "$0.lock()" + let v48 : Result>, std_sync_PoisonError>>> = Fable.Core.RustInterop.emitRustExpr v1 v47 + let v49 : string = "$0.unwrap()" + let v50 : std_sync_MutexGuard> = Fable.Core.RustInterop.emitRustExpr v48 v49 + let v51 : string = "&$0" + let v52 : Ref> = Fable.Core.RustInterop.emitRustExpr v50 v51 + let v53 : string = "$0.send($1)" + let v54 : Result> = Fable.Core.RustInterop.emitRustExpr struct (v52, v46) v53 + let v55 : string = "$0.unwrap()" + Fable.Core.RustInterop.emitRustExpr v54 v55 () #endif #if FABLE_COMPILER_RUST && WASM @@ -4576,36 +4632,74 @@ and closure37 (v0 : bool, v1 : std_sync_Arc fun x -> _v3 <- Some x _v3.Value () -and method46 (v0 : std_sync_MutexGuard) : std_sync_MutexGuard = +and method47 (v0 : std_sync_MutexGuard) : std_sync_MutexGuard = v0 -and closure38 () (v0 : std_process_Output) : US15 = +and method48 (v0 : std_thread_JoinHandle) : std_thread_JoinHandle = + v0 +and closure38 () (v0 : std_thread_JoinHandle) : unit = + let v1 : string = "std::thread::JoinHandle::join($0)" + let v2 : Result>>>>>>> = Fable.Core.RustInterop.emitRustExpr v0 v1 + let v3 : string = "$0.unwrap()" + let v4 : bool = Fable.Core.RustInterop.emitRustExpr v2 v3 + () +and closure39 () (v0 : std_process_Output) : US15 = US15_0(v0) -and closure39 () (v0 : std_string_String) : US15 = +and closure40 () (v0 : std_string_String) : US15 = US15_1(v0) -and closure40 () () : string = +and closure41 () () : string = let v0 : string = $"runtime.execute_with_options / output error" v0 -and closure41 (v0 : std_string_String) () : string = +and closure42 (v0 : std_string_String) () : string = let v1 : (unit -> string) = closure6() let v2 : string = $"error: {v0} / {v1 ()}" v2 -and closure42 () () : string = +and method49 () : string = + let v0 : string = "\n" + v0 +and closure43 () (v0 : std_sync_Arc>>>) : string = + let v1 : string = "$0.lock()" + let v2 : Result>>, std_sync_PoisonError>>>> = Fable.Core.RustInterop.emitRustExpr v0 v1 + let v3 : string = "$0.unwrap()" + let v4 : std_sync_MutexGuard>> = Fable.Core.RustInterop.emitRustExpr v2 v3 + let v5 : string = "v4.iter()" + let v6 : _ = Fable.Core.RustInterop.emitRustExpr () v5 + let v7 : string = "v6.collect::>()" + let v8 : Vec = Fable.Core.RustInterop.emitRustExpr () v7 + let v9 : string = "true; let _result = v8.into_iter().map(|x| { //" + let v10 : bool = Fable.Core.RustInterop.emitRustExpr () v9 + let v11 : string = "x" + let v12 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v11 + let v13 : string = "fable_library_rust::String_::fromString($0)" + let v14 : string = Fable.Core.RustInterop.emitRustExpr v12 v13 + let v15 : string = "true; $0 }).collect::>()" + let v16 : bool = Fable.Core.RustInterop.emitRustExpr v14 v15 + let v17 : string = "_result" + let v18 : Vec = Fable.Core.RustInterop.emitRustExpr () v17 + let v19 : string = "fable_library_rust::NativeArray_::array_from($0)" + let v20 : (string []) = Fable.Core.RustInterop.emitRustExpr v18 v19 + let v21 : ((string []) -> string seq) = Seq.ofArray + let v22 : string seq = v21 v20 + let v23 : string = method49() + let v24 : (string -> (string seq -> string)) = String.concat + let v25 : (string seq -> string) = v24 v23 + v25 v22 +and closure44 () () : string = let v0 : string = $"runtime.execute_with_options / result" v0 -and closure43 (v0 : int32, v1 : string) () : string = +and closure45 (v0 : int32, v1 : string) () : string = let v2 : (unit -> string) = closure6() let v3 : string = $"exit_code: {v0} / std_trace.Length: {v1.Length} / {v2 ()}" v3 -and method47 (v0 : (int32 * string)) : (int32 * string) = +and method50 (v0 : (int32 * string)) : (int32 * string) = v0 -and closure44 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option) () : string = +and closure46 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option) () : string = let v7 : string = $"execute_with_options_async / options: %A{struct (v0, v1, v2, v3, v4, v5, v6)}" v7 -and method49 () : (unit -> string) = +and method52 () : (unit -> string) = closure6() -and closure46 (v0 : string) () : string = +and closure48 (v0 : string) () : string = v0 -and closure45 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option, v7 : System.Diagnostics.Process, v8 : System.Collections.Concurrent.ConcurrentStack) (v9 : System.Diagnostics.DataReceivedEventArgs) : unit = +and closure47 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option, v7 : System.Diagnostics.Process, v8 : System.Collections.Concurrent.ConcurrentStack) (v9 : System.Diagnostics.DataReceivedEventArgs) : unit = let v10 : bool = true let mutable _v10 : Async option = None @@ -4667,7 +4761,7 @@ and closure45 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let v30 : string = $"> {v17}" if v5 then let v31 : US0 = US0_0 - let v32 : (unit -> string) = closure46(v30) + let v32 : (unit -> string) = closure48(v30) let v33 : (unit -> string) = closure6() method3(v31, v32, v33) else @@ -4717,7 +4811,7 @@ and closure45 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : |> fun x -> _v39 <- Some x _v39.Value () -and closure47 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option, v7 : System.Diagnostics.Process, v8 : System.Collections.Concurrent.ConcurrentStack) (v9 : System.Diagnostics.DataReceivedEventArgs) : unit = +and closure49 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option, v7 : System.Diagnostics.Process, v8 : System.Collections.Concurrent.ConcurrentStack) (v9 : System.Diagnostics.DataReceivedEventArgs) : unit = let v10 : bool = true let mutable _v10 : Async option = None @@ -4776,17 +4870,17 @@ and closure47 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let v29 : Async = v27 struct (true, v17, v28) do! v29 () - let v30 : string = $"> {v17}" + let v30 : string = $"! {v17}" if v5 then let v31 : US0 = US0_0 - let v32 : (unit -> string) = closure46(v30) + let v32 : (unit -> string) = closure48(v30) let v33 : (unit -> string) = closure6() method3(v31, v32, v33) else System.Console.WriteLine v30 () - let v34 : string = "\\e[4;7m" - let v35 : string = "\\e[0m" + let v34 : string = "\u001b[7;4m" + let v35 : string = "\u001b[0m" let v36 : string = $"{v34}{v17}{v35}" let v37 : (string -> unit) = v8.Push v37 v36 @@ -4830,7 +4924,7 @@ and closure47 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : |> fun x -> _v40 <- Some x _v40.Value () -and closure48 (v0 : System.Diagnostics.Process) () : unit = +and closure50 (v0 : System.Diagnostics.Process) () : unit = let v1 : bool = true let mutable _v1 : bool option = None @@ -4897,16 +4991,13 @@ and closure48 (v0 : System.Diagnostics.Process) () : unit = |> fun x -> _v10 <- Some x _v10.Value () -and closure49 (v0 : System.Threading.Tasks.TaskCanceledException) () : string = +and closure51 (v0 : System.Threading.Tasks.TaskCanceledException) () : string = let v1 : string = $"execute_with_options_async / WaitForExitAsync / ex: %A{v0}" v1 -and method50 () : string = - let v0 : string = "\n" - v0 -and closure50 (v0 : int32, v1 : string) () : string = +and closure52 (v0 : int32, v1 : string) () : string = let v2 : string = $"execute_with_options_async / exit_code: {v0} / output.Length: {v1.Length}" v2 -and method48 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option) : Async = +and method51 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : (struct (string * string) []), v3 : (struct (bool * string * int32) -> Async) option, v4 : (std_sync_Arc> -> unit) option, v5 : bool, v6 : string option) : Async = let v7 : bool = true let mutable _v7 : Async option = None @@ -5007,8 +5098,8 @@ and method48 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : | US3_0(v46) -> (* Some *) v46 let v50 : US0 = US0_1 - let v51 : (unit -> string) = closure44(v0, v1, v2, v3, v4, v5, v6) - let v52 : (unit -> string) = method49() + let v51 : (unit -> string) = closure46(v0, v1, v2, v3, v4, v5, v6) + let v52 : (unit -> string) = method52() method3(v50, v51, v52) let v53 : System.Text.Encoding = System.Text.Encoding.UTF8 let v54 : System.Diagnostics.ProcessStartInfo = System.Diagnostics.ProcessStartInfo (Arguments = v39, StandardOutputEncoding = v53, WorkingDirectory = v49, FileName = v38, CreateNoWindow = true, RedirectStandardError = true, RedirectStandardOutput = true, UseShellExecute = false) @@ -5026,9 +5117,9 @@ and method48 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let v63 : System.Diagnostics.Process = v62 let v64 : (unit -> System.Collections.Concurrent.ConcurrentStack) = System.Collections.Concurrent.ConcurrentStack let v65 : System.Collections.Concurrent.ConcurrentStack = v64 () - let v66 : (System.Diagnostics.DataReceivedEventArgs -> unit) = closure45(v0, v1, v2, v3, v4, v5, v6, v63, v65) + let v66 : (System.Diagnostics.DataReceivedEventArgs -> unit) = closure47(v0, v1, v2, v3, v4, v5, v6, v63, v65) v63.OutputDataReceived.Add v66 - let v67 : (System.Diagnostics.DataReceivedEventArgs -> unit) = closure47(v0, v1, v2, v3, v4, v5, v6, v63, v65) + let v67 : (System.Diagnostics.DataReceivedEventArgs -> unit) = closure49(v0, v1, v2, v3, v4, v5, v6, v63, v65) v63.ErrorDataReceived.Add v67 let v68 : (unit -> bool) = v63.Start let v69 : bool = v68 () @@ -5141,7 +5232,7 @@ and method48 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let! v106 = v106 let v107 : System.Threading.CancellationToken = v106 let v108 : ((unit -> unit) -> System.Threading.CancellationTokenRegistration) = v107.Register - let v109 : (unit -> unit) = closure48(v63) + let v109 : (unit -> unit) = closure50(v63) let v110 : System.Threading.CancellationTokenRegistration = v108 v109 use v110 = v110 let v111 : System.Threading.CancellationTokenRegistration = v110 @@ -5248,8 +5339,8 @@ and method48 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : v139 v138 let v140 : System.Threading.Tasks.TaskCanceledException = v130 |> unbox let v141 : US0 = US0_3 - let v142 : (unit -> string) = closure49(v140) - let v143 : (unit -> string) = method49() + let v142 : (unit -> string) = closure51(v140) + let v143 : (unit -> string) = method52() method3(v141, v142, v143) return -2147483648 (* @@ -5265,13 +5356,13 @@ and method48 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let v146 : int32 = v145 let v147 : (System.Collections.Concurrent.ConcurrentStack -> string seq) = Seq.rev let v148 : string seq = v147 v65 - let v149 : string = method50() + let v149 : string = method49() let v150 : (string -> (string seq -> string)) = String.concat let v151 : (string seq -> string) = v150 v149 let v152 : string = v151 v148 let v153 : US0 = US0_1 - let v154 : (unit -> string) = closure50(v146, v152) - let v155 : (unit -> string) = method49() + let v154 : (unit -> string) = closure52(v146, v152) + let v155 : (unit -> string) = method52() method3(v153, v154, v155) return struct (v146, v152) } @@ -5326,7 +5417,7 @@ and method35 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let v37 : Ref = Fable.Core.RustInterop.emitRustExpr v35 v36 let v38 : string = "String::from($0)" let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr v37 v38 - let v40 : string = "true; $0 }).collect()" + let v40 : string = "true; $0 }).collect::>()" let v41 : bool = Fable.Core.RustInterop.emitRustExpr v39 v40 let v42 : string = "_result" let v43 : Vec = Fable.Core.RustInterop.emitRustExpr () v42 @@ -5426,16 +5517,16 @@ and method35 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let v115 : (std_sync_Arc> -> US10) = closure27() let v116 : (std_string_String -> US10) = closure28() let v117 : US10 = Fable.Core.RustInterop.emitRustExpr struct (v115, v116) v114 - let struct (v267 : int32, v268 : US2, v269 : US11) = + let struct (v305 : int32, v306 : US2, v307 : US11) = match v117 with - | US10_1(v258) -> (* Error *) - let v259 : US0 = US0_4 - let v260 : (unit -> string) = closure29() - let v261 : (unit -> string) = closure30(v258) - method3(v259, v260, v261) - let v262 : US2 = US2_0(v258) - let v263 : US11 = US11_1 - struct (-1, v262, v263) + | US10_1(v296) -> (* Error *) + let v297 : US0 = US0_4 + let v298 : (unit -> string) = closure29() + let v299 : (unit -> string) = closure30(v296) + method3(v297, v298, v299) + let v300 : US2 = US2_0(v296) + let v301 : US11 = US11_1 + struct (-1, v300, v301) | US10_0(v118) -> (* Ok *) let v119 : string = "$0.lock().unwrap().as_mut().unwrap().stdout.take().unwrap()" let v120 : std_process_ChildStdout = Fable.Core.RustInterop.emitRustExpr v118 v119 @@ -5475,250 +5566,284 @@ and method35 (v0 : System.Threading.CancellationToken option, v1 : string, v2 : let v155 : std_sync_Mutex>> = Fable.Core.RustInterop.emitRustExpr v143 v154 let v156 : string = "std::sync::Arc::new($0)" let v157 : std_sync_Arc>>> = Fable.Core.RustInterop.emitRustExpr v155 v156 - let v158 : string = "std::thread::spawn(move || { //" - let v159 : std_thread_JoinHandle = Fable.Core.RustInterop.emitRustExpr () v158 - let v160 : string = "v129.lock().unwrap().take().unwrap()" - let v161 : std_process_ChildStdout = Fable.Core.RustInterop.emitRustExpr () v160 - let v162 : string = "encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v161)" - let v163 : encoding_rs_io_DecodeReaderBytes> = Fable.Core.RustInterop.emitRustExpr () v162 - let v164 : string = "std::io::BufReader::new(v163)" - let v165 : std_io_BufReader>> = Fable.Core.RustInterop.emitRustExpr () v164 - let v166 : string = "std::sync::Mutex::new($0)" - let v167 : std_sync_Mutex>>> = Fable.Core.RustInterop.emitRustExpr v165 v166 - let v168 : string = "std::sync::Arc::new($0)" - let v169 : std_sync_Arc>>>> = Fable.Core.RustInterop.emitRustExpr v167 v168 - let v170 : string = "true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }" - let v171 : (Result -> unit) = closure31(v5, v151) - let v172 : bool = Fable.Core.RustInterop.emitRustExpr struct (v169, v171) v170 - let v173 : string = "true; })" - let v174 : bool = Fable.Core.RustInterop.emitRustExpr () v173 - let v175 : string = "std::thread::spawn(move || { //" - let v176 : std_thread_JoinHandle = Fable.Core.RustInterop.emitRustExpr () v175 - let v177 : string = "v134.lock().unwrap().take().unwrap()" - let v178 : std_process_ChildStderr = Fable.Core.RustInterop.emitRustExpr () v177 - let v179 : string = "encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v178)" - let v180 : encoding_rs_io_DecodeReaderBytes> = Fable.Core.RustInterop.emitRustExpr () v179 - let v181 : string = "std::io::BufReader::new(v180)" - let v182 : std_io_BufReader>> = Fable.Core.RustInterop.emitRustExpr () v181 - let v183 : string = "std::sync::Mutex::new($0)" - let v184 : std_sync_Mutex>>> = Fable.Core.RustInterop.emitRustExpr v182 v183 - let v185 : string = "std::sync::Arc::new($0)" - let v186 : std_sync_Arc>>>> = Fable.Core.RustInterop.emitRustExpr v184 v185 - let v187 : string = "true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }" - let v188 : (Result -> unit) = closure37(v5, v149) - let v189 : bool = Fable.Core.RustInterop.emitRustExpr struct (v186, v188) v187 - let v190 : string = "true; })" - let v191 : bool = Fable.Core.RustInterop.emitRustExpr () v190 - let v192 : US13 option = None - let _v192 = ref v192 + let v158 : string = "let __result = std::thread::spawn(move || { //" + Fable.Core.RustInterop.emitRustExpr () v158 + let v159 : string = "v129.lock().unwrap().take().unwrap()" + let v160 : std_process_ChildStdout = Fable.Core.RustInterop.emitRustExpr () v159 + let v161 : string = "encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v160)" + let v162 : encoding_rs_io_DecodeReaderBytes> = Fable.Core.RustInterop.emitRustExpr () v161 + let v163 : string = "std::io::BufReader::new(v162)" + let v164 : std_io_BufReader>> = Fable.Core.RustInterop.emitRustExpr () v163 + let v165 : string = "std::sync::Mutex::new($0)" + let v166 : std_sync_Mutex>>> = Fable.Core.RustInterop.emitRustExpr v164 v165 + let v167 : string = "std::sync::Arc::new($0)" + let v168 : std_sync_Arc>>>> = Fable.Core.RustInterop.emitRustExpr v166 v167 + let v169 : string = "true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }" + let v170 : (Result -> unit) = closure31(v5, v151) + let v171 : bool = Fable.Core.RustInterop.emitRustExpr struct (v168, v170) v169 + let v172 : bool = method46() + let v173 : string = "v172 }})" + Fable.Core.RustInterop.emitRustExpr () v173 + let v174 : string = "{ //" + Fable.Core.RustInterop.emitRustExpr () v174 + let v175 : string = "__result" + let v176 : std_thread_JoinHandle = Fable.Core.RustInterop.emitRustExpr () v175 + let v177 : string = "let __result = std::thread::spawn(move || { //" + Fable.Core.RustInterop.emitRustExpr () v177 + let v178 : string = "v134.lock().unwrap().take().unwrap()" + let v179 : std_process_ChildStderr = Fable.Core.RustInterop.emitRustExpr () v178 + let v180 : string = "encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v179)" + let v181 : encoding_rs_io_DecodeReaderBytes> = Fable.Core.RustInterop.emitRustExpr () v180 + let v182 : string = "std::io::BufReader::new(v181)" + let v183 : std_io_BufReader>> = Fable.Core.RustInterop.emitRustExpr () v182 + let v184 : string = "std::sync::Mutex::new($0)" + let v185 : std_sync_Mutex>>> = Fable.Core.RustInterop.emitRustExpr v183 v184 + let v186 : string = "std::sync::Arc::new($0)" + let v187 : std_sync_Arc>>>> = Fable.Core.RustInterop.emitRustExpr v185 v186 + let v188 : string = "true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }" + let v189 : (Result -> unit) = closure37(v5, v149) + let v190 : bool = Fable.Core.RustInterop.emitRustExpr struct (v187, v189) v188 + let v191 : bool = method46() + let v192 : string = "v191 }})" + Fable.Core.RustInterop.emitRustExpr () v192 + let v193 : string = "{ //" + Fable.Core.RustInterop.emitRustExpr () v193 + let v194 : string = "__result" + let v195 : std_thread_JoinHandle = Fable.Core.RustInterop.emitRustExpr () v194 + let v196 : US13 option = None + let _v196 = ref v196 match v4 with | Some x -> ( (fun () -> (fun () -> - let v193 : (std_sync_Arc> -> unit) = x - let v194 : US13 = US13_0(v193) - v194 + let v197 : (std_sync_Arc> -> unit) = x + let v198 : US13 = US13_0(v197) + v198 ) |> fun x -> x () |> Some ) () ) | None -> None - |> fun x -> _v192.Value <- x - let v195 : US13 option = _v192.Value - let v196 : US13 = US13_1 - let v197 : US13 = v195 |> Option.defaultValue v196 - match v197 with + |> fun x -> _v196.Value <- x + let v199 : US13 option = _v196.Value + let v200 : US13 = US13_1 + let v201 : US13 = v199 |> Option.defaultValue v200 + match v201 with | US13_1 -> (* None *) () - | US13_0(v198) -> (* Some *) - let v199 : string = "v139.lock().unwrap().take()" - let v200 : std_process_ChildStdin option = Fable.Core.RustInterop.emitRustExpr () v199 - let v201 : string = "true; let _result = v200.map(|x| { //" - let v202 : bool = Fable.Core.RustInterop.emitRustExpr () v201 - let v203 : string = "x" - let v204 : std_process_ChildStdin = Fable.Core.RustInterop.emitRustExpr () v203 - let v205 : string = "std::sync::Mutex::new($0)" - let v206 : std_sync_Mutex = Fable.Core.RustInterop.emitRustExpr v204 v205 - let v207 : string = "std::sync::Arc::new($0)" - let v208 : std_sync_Arc> = Fable.Core.RustInterop.emitRustExpr v206 v207 - let v209 : string = "true; $0 })" - let v210 : bool = Fable.Core.RustInterop.emitRustExpr v208 v209 - let v211 : string = "_result" - let v212 : std_sync_Arc> option = Fable.Core.RustInterop.emitRustExpr () v211 - let v213 : US14 option = None - let _v213 = ref v213 - match v212 with + | US13_0(v202) -> (* Some *) + let v203 : string = "$0.lock()" + let v204 : Result, std_sync_PoisonError>> = Fable.Core.RustInterop.emitRustExpr v139 v203 + let v205 : string = "$0.unwrap()" + let v206 : std_sync_MutexGuard = Fable.Core.RustInterop.emitRustExpr v204 v205 + let v207 : string = "true; let mut v206 = v206" + let v208 : bool = Fable.Core.RustInterop.emitRustExpr () v207 + let v209 : string = "&mut $0" + let v210 : Ref> = Fable.Core.RustInterop.emitRustExpr v206 v209 + let v211 : string = "Option::take($0)" + let v212 : std_process_ChildStdin option = Fable.Core.RustInterop.emitRustExpr v210 v211 + let v213 : string = "true; let _result = v212.map(|x| { //" + let v214 : bool = Fable.Core.RustInterop.emitRustExpr () v213 + let v215 : string = "x" + let v216 : std_process_ChildStdin = Fable.Core.RustInterop.emitRustExpr () v215 + let v217 : string = "std::sync::Mutex::new($0)" + let v218 : std_sync_Mutex = Fable.Core.RustInterop.emitRustExpr v216 v217 + let v219 : string = "std::sync::Arc::new($0)" + let v220 : std_sync_Arc> = Fable.Core.RustInterop.emitRustExpr v218 v219 + let v221 : string = "true; $0 })" + let v222 : bool = Fable.Core.RustInterop.emitRustExpr v220 v221 + let v223 : string = "_result" + let v224 : std_sync_Arc> option = Fable.Core.RustInterop.emitRustExpr () v223 + let v225 : US14 option = None + let _v225 = ref v225 + match v224 with | Some x -> ( (fun () -> (fun () -> - let v214 : std_sync_Arc> = x - let v215 : US14 = US14_0(v214) - v215 + let v226 : std_sync_Arc> = x + let v227 : US14 = US14_0(v226) + v227 ) |> fun x -> x () |> Some ) () ) | None -> None - |> fun x -> _v213.Value <- x - let v216 : US14 option = _v213.Value - let v217 : US14 = US14_1 - let v218 : US14 = v216 |> Option.defaultValue v217 - match v218 with + |> fun x -> _v225.Value <- x + let v228 : US14 option = _v225.Value + let v229 : US14 = US14_1 + let v230 : US14 = v228 |> Option.defaultValue v229 + match v230 with | US14_1 -> (* None *) () - | US14_0(v219) -> (* Some *) - v198 v219 - let v220 : string = "$0.lock()" - let v221 : Result, std_sync_PoisonError>> = Fable.Core.RustInterop.emitRustExpr v219 v220 - let v222 : string = "$0.unwrap()" - let v223 : std_sync_MutexGuard = Fable.Core.RustInterop.emitRustExpr v221 v222 - let v224 : std_sync_MutexGuard = method46(v223) - let v225 : string = "true; let mut v224 = v224" - let v226 : bool = Fable.Core.RustInterop.emitRustExpr () v225 - let v227 : string = "true; std::io::Write::flush(&mut *$0).unwrap()" - let v228 : bool = Fable.Core.RustInterop.emitRustExpr v224 v227 + | US14_0(v231) -> (* Some *) + v202 v231 + let v232 : string = "$0.lock()" + let v233 : Result, std_sync_PoisonError>> = Fable.Core.RustInterop.emitRustExpr v231 v232 + let v234 : string = "$0.unwrap()" + let v235 : std_sync_MutexGuard = Fable.Core.RustInterop.emitRustExpr v233 v234 + let v236 : std_sync_MutexGuard = method47(v235) + let v237 : string = "true; let mut v236 = v236" + let v238 : bool = Fable.Core.RustInterop.emitRustExpr () v237 + let v239 : string = "true; std::io::Write::flush(&mut *$0).unwrap()" + let v240 : bool = Fable.Core.RustInterop.emitRustExpr v236 v239 () - let v229 : string = "$0.lock().unwrap().take().unwrap().wait_with_output()" - let v230 : Result = Fable.Core.RustInterop.emitRustExpr v118 v229 - let v231 : (std_io_Error -> std_string_String) = method29() - let v232 : string = "$0.map_err(|x| $1(x))" - let v233 : Result = Fable.Core.RustInterop.emitRustExpr struct (v230, v231) v232 - let v234 : string = "true; v159.join().unwrap()" - let v235 : bool = Fable.Core.RustInterop.emitRustExpr () v234 - let v236 : string = "true; v176.join().unwrap()" - let v237 : bool = Fable.Core.RustInterop.emitRustExpr () v236 - let v238 : (std_process_Output -> US15) = closure38() - let v239 : (std_string_String -> US15) = closure39() - let v240 : US15 = match v233 with Ok x -> v238 x | Error x -> v239 x - match v240 with - | US15_1(v246) -> (* Error *) - let v247 : US0 = US0_4 - let v248 : (unit -> string) = closure40() - let v249 : (unit -> string) = closure41(v246) - method3(v247, v248, v249) - let v250 : US2 = US2_0(v246) - let v251 : US11 = US11_1 - struct (-2, v250, v251) - | US15_0(v241) -> (* Ok *) - let v242 : string = "$0.status.code().unwrap()" - let v243 : int32 = Fable.Core.RustInterop.emitRustExpr v241 v242 - let v244 : US2 = US2_1 - let v245 : US11 = US11_0(v157) - struct (v243, v244, v245) - let v276 : US2 = - match v269 with + let v241 : string = "$0.lock()" + let v242 : Result, std_sync_PoisonError>> = Fable.Core.RustInterop.emitRustExpr v118 v241 + let v243 : string = "$0.unwrap()" + let v244 : std_sync_MutexGuard = Fable.Core.RustInterop.emitRustExpr v242 v243 + let v245 : string = "true; let mut v244 = v244" + let v246 : bool = Fable.Core.RustInterop.emitRustExpr () v245 + let v247 : string = "&mut $0" + let v248 : Ref> = Fable.Core.RustInterop.emitRustExpr v244 v247 + let v249 : string = "Option::take($0)" + let v250 : std_process_Child option = Fable.Core.RustInterop.emitRustExpr v248 v249 + let v251 : string = "$0.unwrap()" + let v252 : std_process_Child = Fable.Core.RustInterop.emitRustExpr v250 v251 + let v253 : string = "$0.wait_with_output()" + let v254 : Result = Fable.Core.RustInterop.emitRustExpr v252 v253 + let v255 : (std_io_Error -> std_string_String) = method29() + let v256 : string = "$0.map_err(|x| $1(x))" + let v257 : Result = Fable.Core.RustInterop.emitRustExpr struct (v254, v255) v256 + let v258 : std_thread_JoinHandle = method48(v176) + let v259 : string = "v258" + let v260 : string = "" + let v261 : string = v259 + v260 + let v262 : string = v261 + v260 + let v263 : std_thread_JoinHandle = method48(v195) + let v264 : string = "v263" + let v265 : string = "," + let v266 : string = v264 + v265 + let v267 : string = v266 + v262 + let v268 : string = "vec![" + v267 + "]" + let v269 : Vec> = Fable.Core.RustInterop.emitRustExpr () v268 + let v270 : string = "$0.into_iter().for_each(|x| { $1(x); })" + let v271 : (std_thread_JoinHandle -> unit) = closure38() + Fable.Core.RustInterop.emitRustExpr struct (v269, v271) v270 + let v272 : (std_process_Output -> US15) = closure39() + let v273 : (std_string_String -> US15) = closure40() + let v274 : US15 = match v257 with Ok x -> v272 x | Error x -> v273 x + match v274 with + | US15_1(v284) -> (* Error *) + let v285 : US0 = US0_4 + let v286 : (unit -> string) = closure41() + let v287 : (unit -> string) = closure42(v284) + method3(v285, v286, v287) + let v288 : US2 = US2_0(v284) + let v289 : US11 = US11_1 + struct (-2, v288, v289) + | US15_0(v275) -> (* Ok *) + let v276 : string = "$0.status" + let v277 : std_process_ExitStatus = Fable.Core.RustInterop.emitRustExpr v275 v276 + let v278 : string = "$0.code()" + let v279 : int32 option = Fable.Core.RustInterop.emitRustExpr v277 v278 + let v280 : string = "$0.unwrap()" + let v281 : int32 = Fable.Core.RustInterop.emitRustExpr v279 v280 + let v282 : US2 = US2_1 + let v283 : US11 = US11_0(v157) + struct (v281, v282, v283) + let v312 : std_sync_Arc>>> option = + match v307 with | US11_1 -> (* None *) - US2_1 - | US11_0(v270) -> (* Some *) - let v271 : string = "$0.lock().unwrap().iter().collect::>().join(\"\\n\")" - let v272 : std_string_String = Fable.Core.RustInterop.emitRustExpr v270 v271 - US2_0(v272) - let v283 : US3 = - match v276 with + let v310 : std_sync_Arc>>> option = None + v310 + | US11_0(v308) -> (* Some *) + let v309 : std_sync_Arc>>> option = Some v308 + v309 + let v313 : (std_sync_Arc>>> -> string) = closure43() + let v314 : string option = v312 |> Option.map v313 + let v321 : US3 = + match v306 with | US2_1 -> (* None *) US3_1 - | US2_0(v277) -> (* Some *) - let v278 : string = "fable_library_rust::String_::fromString($0)" - let v279 : string = Fable.Core.RustInterop.emitRustExpr v277 v278 - US3_0(v279) - let v290 : US3 = - match v268 with - | US2_1 -> (* None *) - US3_1 - | US2_0(v284) -> (* Some *) - let v285 : string = "fable_library_rust::String_::fromString($0)" - let v286 : string = Fable.Core.RustInterop.emitRustExpr v284 v285 - US3_0(v286) - let v294 : string = - match v290 with - | US3_1 -> (* None *) - let v292 : string = "" - v292 - | US3_0(v291) -> (* Some *) - v291 - let v297 : string = - match v283 with + | US2_0(v315) -> (* Some *) + let v316 : string = "fable_library_rust::String_::fromString($0)" + let v317 : string = Fable.Core.RustInterop.emitRustExpr v315 v316 + US3_0(v317) + let v325 : string = + match v321 with | US3_1 -> (* None *) - v294 - | US3_0(v295) -> (* Some *) - v295 - let v298 : US0 = US0_0 - let v299 : (unit -> string) = closure42() - let v300 : (unit -> string) = closure43(v267, v297) - method3(v298, v299, v300) - let v301 : (int32 * string) = v267, v297 - v301 + let v323 : string = "" + v323 + | US3_0(v322) -> (* Some *) + v322 + let v326 : string = v314 |> Option.defaultValue v325 + let v327 : US0 = US0_0 + let v328 : (unit -> string) = closure44() + let v329 : (unit -> string) = closure45(v305, v326) + method3(v327, v328, v329) + let v330 : (int32 * string) = v305, v326 + v330 ) |> fun x -> x () ) () ) |> fun x -> _v48 <- Some x - let v302 : (int32 * string) = _v48.Value - let v303 : (int32 * string) = method47(v302) - let v304 : string = "v303 }}})" - Fable.Core.RustInterop.emitRustExpr () v304 - let v305 : string = "{{ //" - Fable.Core.RustInterop.emitRustExpr () v305 - let v306 : string = "__result" - let v307 : std_pin_Pin>>> = Fable.Core.RustInterop.emitRustExpr () v306 - let v308 : string = "futures_lite::future::block_on($0)" - let v309 : (int32 * string) = Fable.Core.RustInterop.emitRustExpr v307 v308 - let (a, b) = v309 - let v310 : int32 = a - let v311 : string = b - struct (v310, v311) + let v331 : (int32 * string) = _v48.Value + let v332 : (int32 * string) = method50(v331) + let v333 : string = "v332 }}})" + Fable.Core.RustInterop.emitRustExpr () v333 + let v334 : string = "{{ //" + Fable.Core.RustInterop.emitRustExpr () v334 + let v335 : string = "__result" + let v336 : std_pin_Pin>>> = Fable.Core.RustInterop.emitRustExpr () v335 + let v337 : string = "futures_lite::future::block_on($0)" + let v338 : (int32 * string) = Fable.Core.RustInterop.emitRustExpr v336 v337 + let (a, b) = v338 + let v339 : int32 = a + let v340 : string = b + struct (v339, v340) #endif #if FABLE_COMPILER_RUST && WASM - let struct (v312 : int32, v313 : string) = null |> unbox - struct (v312, v313) + let struct (v341 : int32, v342 : string) = null |> unbox + struct (v341, v342) #endif #if FABLE_COMPILER_RUST && CONTRACT - let struct (v314 : int32, v315 : string) = null |> unbox - struct (v314, v315) + let struct (v343 : int32, v344 : string) = null |> unbox + struct (v343, v344) #endif #if FABLE_COMPILER_TYPESCRIPT - let struct (v316 : int32, v317 : string) = null |> unbox - struct (v316, v317) + let struct (v345 : int32, v346 : string) = null |> unbox + struct (v345, v346) #endif #if FABLE_COMPILER_PYTHON - let struct (v318 : int32, v319 : string) = null |> unbox - struct (v318, v319) + let struct (v347 : int32, v348 : string) = null |> unbox + struct (v347, v348) #endif #else - let v320 : Async = method48(v0, v1, v2, v3, v4, v5, v6) - let v321 : bool = true - let mutable _v321 : struct (int32 * string) option = None + let v349 : Async = method51(v0, v1, v2, v3, v4, v5, v6) + let v350 : bool = true + let mutable _v350 : struct (int32 * string) option = None #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let struct (v322 : int32, v323 : string) = null |> unbox - struct (v322, v323) + let struct (v351 : int32, v352 : string) = null |> unbox + struct (v351, v352) #endif #if FABLE_COMPILER_RUST && WASM - let struct (v324 : int32, v325 : string) = null |> unbox - struct (v324, v325) + let struct (v353 : int32, v354 : string) = null |> unbox + struct (v353, v354) #endif #if FABLE_COMPILER_RUST && CONTRACT - let struct (v326 : int32, v327 : string) = null |> unbox - struct (v326, v327) + let struct (v355 : int32, v356 : string) = null |> unbox + struct (v355, v356) #endif #if FABLE_COMPILER_TYPESCRIPT - let struct (v328 : int32, v329 : string) = null |> unbox - struct (v328, v329) + let struct (v357 : int32, v358 : string) = null |> unbox + struct (v357, v358) #endif #if FABLE_COMPILER_PYTHON - let struct (v330 : int32, v331 : string) = null |> unbox - struct (v330, v331) + let struct (v359 : int32, v360 : string) = null |> unbox + struct (v359, v360) #endif #else - let v332 : (Async -> struct (int32 * string)) = Async.RunSynchronously - let struct (v333 : int32, v334 : string) = v332 v320 - struct (v333, v334) + let v361 : (Async -> struct (int32 * string)) = Async.RunSynchronously + let struct (v362 : int32, v363 : string) = v361 v349 + struct (v362, v363) #endif - |> fun x -> _v321 <- Some x - let struct (v335 : int32, v336 : string) = _v321.Value - struct (v335, v336) + |> fun x -> _v350 <- Some x + let struct (v364 : int32, v365 : string) = _v350.Value + struct (v364, v365) #endif |> fun x -> _v7 <- Some x - let struct (v337 : int32, v338 : string) = _v7.Value - struct (v337, v338) -and method51 (v0 : string, v1 : string, v2 : string) : struct (string * string) = + let struct (v366 : int32, v367 : string) = _v7.Value + struct (v366, v367) +and method53 (v0 : string, v1 : string, v2 : string) : struct (string * string) = let v3 : bool = true let mutable _v3 : string option = None @@ -5796,62 +5921,62 @@ and method51 (v0 : string, v1 : string, v2 : string) : struct (string * string) let v46 : string = $"{v38}.{v0}" v46 struct (v47, v44) -and closure51 () (v0 : uint8) : string = +and closure53 () (v0 : uint8) : string = let v1 : string = "{:02x}" let v2 : string = "format!(\"" + v1 + "\", $0)" let v3 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v2 let v4 : string = "fable_library_rust::String_::fromString($0)" let v5 : string = Fable.Core.RustInterop.emitRustExpr v3 v4 v5 -and method52 () : string = +and method54 () : string = let v0 : string = "" v0 -and closure52 () () : string = +and closure54 () () : string = let v0 : string = "documents.run / par_map / origin_hash |> sm'.contains local_git_hash |> not / hash2 = None || hash1 <>. (hash2 |> optionm.value)" v0 -and closure53 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : int32, v5 : string, v6 : string, v7 : int32, v8 : string, v9 : string, v10 : US3) () : string = +and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : int32, v5 : string, v6 : string, v7 : int32, v8 : string, v9 : string, v10 : US3) () : string = let v11 : (unit -> string) = closure6() let v12 : string = $"file: {v1} / real_path: {v2} / relative_path: {v0} / origin_hash_exit_code: {v4} / origin_hash: {v3} / local_git_hash_exit_code: {v7} / local_git_hash: {v6} / hash1: {v9} / hash2: %A{v10} / dist_path: {v5} / cache_path: {v8} / {v11 ()}" v12 -and method53 (v0 : string) : string = +and method55 (v0 : string) : string = v0 -and method55 (v0 : int32, v1 : Mut6) : bool = +and method57 (v0 : int32, v1 : Mut6) : bool = let v2 : int32 = v1.l0 let v3 : bool = v2 < v0 v3 -and method56 (v0 : string) : string = +and method58 (v0 : string) : string = v0 -and method57 (v0 : std_sync_MutexGuard) : std_sync_MutexGuard = +and method59 (v0 : std_sync_MutexGuard) : std_sync_MutexGuard = v0 -and closure56 (v0 : string) (v1 : std_sync_Arc>) : unit = +and closure58 (v0 : string) (v1 : std_sync_Arc>) : unit = let v2 : string = "$0.lock()" let v3 : Result, std_sync_PoisonError>> = Fable.Core.RustInterop.emitRustExpr v1 v2 let v4 : string = "$0.unwrap()" let v5 : std_sync_MutexGuard = Fable.Core.RustInterop.emitRustExpr v3 v4 - let v6 : string = method56(v0) + let v6 : string = method58(v0) let v7 : string = "v6.as_bytes()" let v8 : Ref> = Fable.Core.RustInterop.emitRustExpr () v7 - let v9 : std_sync_MutexGuard = method57(v5) + let v9 : std_sync_MutexGuard = method59(v5) let v10 : string = "true; let mut v9 = v9" let v11 : bool = Fable.Core.RustInterop.emitRustExpr () v10 let v12 : string = "true; std::io::Write::write_all(&mut *$0, v8).unwrap()" let v13 : bool = Fable.Core.RustInterop.emitRustExpr v9 v12 () -and method58 (v0 : int32, v1 : Mut7) : bool = +and method60 (v0 : int32, v1 : Mut7) : bool = let v2 : int32 = v1.l0 let v3 : bool = v2 < v0 v3 -and method59 (v0 : string) : string = +and method61 (v0 : string) : string = v0 -and closure57 () () : string = +and closure59 () () : string = let v0 : string = "documents.hangul" v0 -and closure58 (v0 : string, v1 : int32, v2 : string) () : string = +and closure60 (v0 : string, v1 : int32, v2 : string) () : string = let v3 : int32 = v2.Length let v4 : (unit -> string) = closure6() let v5 : string = $"exit_code: %A{v1} / result_len: {v3} / output_path: {v0} / {v4 ()}" v5 -and method54 (v0 : string, v1 : string, v2 : string, v3 : string) : US19 = +and method56 (v0 : string, v1 : string, v2 : string, v3 : string) : US19 = let v4 : bool = true let mutable _v4 : string option = None @@ -5938,7 +6063,7 @@ and method54 (v0 : string, v1 : string, v2 : string, v3 : string) : US19 = let v38 : int32 = v31.Length let v39 : (string []) = Array.zeroCreate (v38) let v40 : Mut6 = {l0 = 0; l1 = 0} : Mut6 - while method55(v38, v40) do + while method57(v38, v40) do let v42 : int32 = v40.l0 let v43 : int32 = v40.l1 let v44 : string = v31.[int v42] @@ -5966,7 +6091,7 @@ and method54 (v0 : string, v1 : string, v2 : string, v3 : string) : US19 = v52.l0 <- v56 () let v57 : string seq = seq { for i = 0 to v51.Length - 1 do yield v51.[i] } - let v58 : string = method50() + let v58 : string = method49() let v59 : (string -> (string seq -> string)) = String.concat let v60 : (string seq -> string) = v59 v58 let v61 : string = v60 v57 @@ -6022,7 +6147,7 @@ and method54 (v0 : string, v1 : string, v2 : string, v3 : string) : US19 = let v82 : string = $"../vault/deps/hangulize/cmd/hangulize/hangulize{v81}" let v83 : string = method11(v0, v82) let v84 : string = $"{v83} {v1}" - let v85 : (std_sync_Arc> -> unit) = closure56(v62) + let v85 : (std_sync_Arc> -> unit) = closure58(v62) let v86 : (std_sync_Arc> -> unit) option = Some v85 let v87 : bool = true let struct (v88 : int32, v89 : string) = method35(v63, v84, v64, v65, v86, v87, v67) @@ -6030,7 +6155,7 @@ and method54 (v0 : string, v1 : string, v2 : string, v3 : string) : US19 = let v91 : int32 = v90.Length let v92 : string = "" let v93 : Mut7 = {l0 = 0; l1 = v92; l2 = 0; l3 = 0} : Mut7 - while method58(v38, v93) do + while method60(v38, v93) do let v95 : int32 = v93.l0 let struct (v96 : string, v97 : int32, v98 : int32) = v93.l1, v93.l2, v93.l3 let v99 : string = v31.[int v95] @@ -6095,26 +6220,26 @@ and method54 (v0 : string, v1 : string, v2 : string, v3 : string) : US19 = () #endif #else - let v123 : string = method59(v118) + let v123 : string = method61(v118) System.IO.File.WriteAllText (v2, v123) () #endif |> fun x -> _v121 <- Some x _v121.Value let v124 : US0 = US0_2 - let v125 : (unit -> string) = closure57() - let v126 : (unit -> string) = closure58(v2, v88, v118) + let v125 : (unit -> string) = closure59() + let v126 : (unit -> string) = closure60(v2, v88, v118) method3(v124, v125, v126) US19_0(v88, v118) -and closure59 () () : string = +and closure61 () () : string = let v0 : string = "documents.files_fn / error" v0 -and closure60 (v0 : string, v1 : int32) () : string = +and closure62 (v0 : string, v1 : int32) () : string = let v2 : (unit -> string) = closure6() let v3 : string = $"exit_code: %A{v1} / result: {v0} / {v2 ()}" v3 -and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) (v5 : string) : US18 = - let struct (v6 : string, v7 : string) = method51(v5, v4, v0) +and closure57 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) (v5 : string) : US18 = + let struct (v6 : string, v7 : string) = method53(v5, v4, v0) let v8 : bool = true let mutable _v8 : bool option = None @@ -6355,15 +6480,15 @@ and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v132 : bool = Fable.Core.RustInterop.emitRustExpr () v131 let v133 : string = "&sha2::Digest::finalize(v94)" let v134 : Ref> = Fable.Core.RustInterop.emitRustExpr () v133 - let v135 : string = "$0.iter().map(|x| *x).collect()" + let v135 : string = "$0.iter().map(|x| *x).collect::>()" let v136 : Vec = Fable.Core.RustInterop.emitRustExpr v134 v135 - let v137 : string = "$0.into_iter().map(|x| $1(x.clone())).collect()" - let v138 : (uint8 -> string) = closure51() + let v137 : string = "$0.into_iter().map(|x| $1(x.clone())).collect::>()" + let v138 : (uint8 -> string) = closure53() let v139 : Vec = Fable.Core.RustInterop.emitRustExpr struct (v136, v138) v137 let v140 : string = "fable_library_rust::NativeArray_::array_from($0)" let v141 : (string []) = Fable.Core.RustInterop.emitRustExpr v139 v140 let v142 : string seq = seq { for i = 0 to v141.Length - 1 do yield v141.[i] } - let v143 : string = method52() + let v143 : string = method54() let v144 : (string -> (string seq -> string)) = String.concat let v145 : (string seq -> string) = v144 v143 let v146 : string = v145 v142 @@ -6500,14 +6625,14 @@ and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v224 : bool = Fable.Core.RustInterop.emitRustExpr () v223 let v225 : string = "&sha2::Digest::finalize(v186)" let v226 : Ref> = Fable.Core.RustInterop.emitRustExpr () v225 - let v227 : string = "$0.iter().map(|x| *x).collect()" + let v227 : string = "$0.iter().map(|x| *x).collect::>()" let v228 : Vec = Fable.Core.RustInterop.emitRustExpr v226 v227 - let v229 : string = "$0.into_iter().map(|x| $1(x.clone())).collect()" + let v229 : string = "$0.into_iter().map(|x| $1(x.clone())).collect::>()" let v230 : Vec = Fable.Core.RustInterop.emitRustExpr struct (v228, v138) v229 let v231 : string = "fable_library_rust::NativeArray_::array_from($0)" let v232 : (string []) = Fable.Core.RustInterop.emitRustExpr v230 v231 let v233 : string seq = seq { for i = 0 to v232.Length - 1 do yield v232.[i] } - let v234 : string = method52() + let v234 : string = method54() let v235 : (string -> (string seq -> string)) = String.concat let v236 : (string seq -> string) = v235 v234 let v237 : string = v236 v233 @@ -6517,7 +6642,7 @@ and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) false let v240 : bool = v239 = false if v240 then - let v241 : US19 = method54(v2, v3, v7, v4) + let v241 : US19 = method56(v2, v3, v7, v4) match v241 with | US19_1(v282, v283) -> (* Error *) let v284 : (string * string) = v7, v283 @@ -6527,8 +6652,8 @@ and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v244 : bool = v242 <> 0 if v244 then let v245 : US0 = US0_2 - let v246 : (unit -> string) = closure59() - let v247 : (unit -> string) = closure60(v243, v242) + let v246 : (unit -> string) = closure61() + let v247 : (unit -> string) = closure62(v243, v242) method3(v245, v246, v247) let v248 : (string * string) = v7, v243 let v249 : Result = Error v248 @@ -6589,7 +6714,7 @@ and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v273 : string = method53(v6) + let v273 : string = method55(v6) let v274 : string = "std::fs::copy(&*$0, &*v273)" let v275 : Result = Fable.Core.RustInterop.emitRustExpr v7 v274 let v276 : string = "$0.unwrap()" @@ -6626,18 +6751,18 @@ and closure55 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) US18_0(v279) else US18_1 -and closure54 (v0 : string, v1 : string, v2 : string, v3 : string) (v4 : string) : (string -> US18) = - closure55(v0, v1, v2, v3, v4) -and closure63 () () : string = +and closure56 (v0 : string, v1 : string, v2 : string, v3 : string) (v4 : string) : (string -> US18) = + closure57(v0, v1, v2, v3, v4) +and closure65 () () : string = let v0 : string = "documents.crowbook / result contains ERROR" v0 -and closure64 (v0 : string, v1 : string, v2 : int32) () : string = +and closure66 (v0 : string, v1 : string, v2 : int32) () : string = let v3 : (unit -> string) = closure6() let v4 : string = $"exit_code: %A{v2} / output_path: {v0} / result: {v1} / {v3 ()}" v4 -and method60 (v0 : bool, v1 : string, v2 : string, v3 : string, v4 : string) : US19 = +and method62 (v0 : bool, v1 : string, v2 : string, v3 : string, v4 : string) : US19 = let v5 : bool = "html" = v4 - let v45 : string = + let v47 : string = if v5 then let v6 : string = $"--set" let v7 : string = $" html.css.add \\\"' body {{ color: #e8e6e3; background-color: #202324; }} a {{ color: #989693; }} pre {{ background-color: #1b1b1b; padding: 10px; }} '\\\"" @@ -6653,65 +6778,67 @@ and method60 (v0 : bool, v1 : string, v2 : string, v3 : string, v4 : string) : U let v14 : string = $"--set" let v15 : string = $" tex.paper.size a4paper" let v16 : string = v14 + v15 - let v17 : bool = v0 = false - let v26 : string = - if v17 then - let v18 : string = "" - v18 + let v17 : string = $" tex.template.add \"\\pagenumbering{{gobble}}\"" + let v18 : string = v16 + v17 + let v19 : bool = v0 = false + let v28 : string = + if v19 then + let v20 : string = "" + v20 else - let v19 : string = $" tex.template.add \"\\usepackage{{polyglossia}}\"" - let v20 : string = $" tex.template.add \"\\setmainlanguage{{korean}}\"" - let v21 : string = v19 + v20 - let v22 : string = $" tex.template.add \"\\setmainfont{{NanumGothicCoding}}\"" + let v21 : string = $" tex.template.add \"\\usepackage{{polyglossia}}\"" + let v22 : string = $" tex.template.add \"\\setmainlanguage{{korean}}\"" let v23 : string = v21 + v22 - let v24 : string = $" tex.font.size 12" + let v24 : string = $" tex.template.add \"\\setmainfont{{NanumGothicCoding}}\"" let v25 : string = v23 + v24 - v25 - let v27 : string = v16 + v26 - let v28 : string = $" rendering.num_depth 6" - let v29 : string = $" rendering.highlight.theme \\\"Solarized (dark)\\\"" - let v30 : string = v28 + v29 - let v31 : string = v27 + v30 - v31 + let v26 : string = $" tex.font.size 12" + let v27 : string = v25 + v26 + v27 + let v29 : string = v18 + v28 + let v30 : string = $" rendering.num_depth 6" + let v31 : string = $" rendering.highlight.theme \\\"Solarized (dark)\\\"" + let v32 : string = v30 + v31 + let v33 : string = v29 + v32 + v33 else - let v32 : bool = "epub" = v4 - if v32 then - let v33 : string = $"--set" - let v34 : string = $" epub.version 3" - let v35 : string = v33 + v34 - let v36 : string = $" html.css.add \\\"' body {{ color: #e8e6e3; background-color: #202324; }} a {{ color: #989693; }} '\\\"" + let v34 : bool = "epub" = v4 + if v34 then + let v35 : string = $"--set" + let v36 : string = $" epub.version 3" let v37 : string = v35 + v36 - let v38 : string = $" rendering.num_depth 6" - let v39 : string = $" rendering.highlight.theme \\\"Solarized (dark)\\\"" - let v40 : string = v38 + v39 - let v41 : string = v37 + v40 - v41 + let v38 : string = $" html.css.add \\\"' body {{ color: #e8e6e3; background-color: #202324; }} a {{ color: #989693; }} '\\\"" + let v39 : string = v37 + v38 + let v40 : string = $" rendering.num_depth 6" + let v41 : string = $" rendering.highlight.theme \\\"Solarized (dark)\\\"" + let v42 : string = v40 + v41 + let v43 : string = v39 + v42 + v43 else - let v42 : string = "" - v42 - let v46 : System.Threading.CancellationToken option = None - let v47 : (struct (string * string) []) = [||] - let v48 : (struct (bool * string * int32) -> Async) option = None - let v49 : (std_sync_Arc> -> unit) option = None - let v50 : string option = None - let v51 : string = $"crowbook --verbose --to {v4}" - let v52 : string = $" --single \"{v2}\" --output \"{v1}\" {v45}" - let v53 : string = v51 + v52 - let v54 : string option = Some v3 - let v55 : bool = true - let struct (v56 : int32, v57 : string) = method35(v46, v53, v47, v48, v49, v55, v54) - let v58 : string = "ERROR" - let v59 : bool = v57.Contains v58 - if v59 then - let v60 : US0 = US0_3 - let v61 : (unit -> string) = closure63() - let v62 : (unit -> string) = closure64(v1, v57, v56) - method3(v60, v61, v62) - US19_1(v56, v57) + let v44 : string = "" + v44 + let v48 : System.Threading.CancellationToken option = None + let v49 : (struct (string * string) []) = [||] + let v50 : (struct (bool * string * int32) -> Async) option = None + let v51 : (std_sync_Arc> -> unit) option = None + let v52 : string option = None + let v53 : string = $"crowbook --verbose --to {v4}" + let v54 : string = $" --single \"{v2}\" --output \"{v1}\" {v47}" + let v55 : string = v53 + v54 + let v56 : string option = Some v3 + let v57 : bool = true + let struct (v58 : int32, v59 : string) = method35(v48, v55, v49, v50, v51, v57, v56) + let v60 : string = "ERROR" + let v61 : bool = v59.Contains v60 + if v61 then + let v62 : US0 = US0_3 + let v63 : (unit -> string) = closure65() + let v64 : (unit -> string) = closure66(v1, v59, v58) + method3(v62, v63, v64) + US19_1(v58, v59) else - US19_0(v56, v57) -and closure62 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : US18 = - let struct (v5 : string, v6 : string) = method51(v4, v3, v0) + US19_0(v58, v59) +and closure64 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : US18 = + let struct (v5 : string, v6 : string) = method53(v4, v3, v0) let v7 : bool = true let mutable _v7 : bool option = None @@ -6952,15 +7079,15 @@ and closure62 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : let v131 : bool = Fable.Core.RustInterop.emitRustExpr () v130 let v132 : string = "&sha2::Digest::finalize(v93)" let v133 : Ref> = Fable.Core.RustInterop.emitRustExpr () v132 - let v134 : string = "$0.iter().map(|x| *x).collect()" + let v134 : string = "$0.iter().map(|x| *x).collect::>()" let v135 : Vec = Fable.Core.RustInterop.emitRustExpr v133 v134 - let v136 : string = "$0.into_iter().map(|x| $1(x.clone())).collect()" - let v137 : (uint8 -> string) = closure51() + let v136 : string = "$0.into_iter().map(|x| $1(x.clone())).collect::>()" + let v137 : (uint8 -> string) = closure53() let v138 : Vec = Fable.Core.RustInterop.emitRustExpr struct (v135, v137) v136 let v139 : string = "fable_library_rust::NativeArray_::array_from($0)" let v140 : (string []) = Fable.Core.RustInterop.emitRustExpr v138 v139 let v141 : string seq = seq { for i = 0 to v140.Length - 1 do yield v140.[i] } - let v142 : string = method52() + let v142 : string = method54() let v143 : (string -> (string seq -> string)) = String.concat let v144 : (string seq -> string) = v143 v142 let v145 : string = v144 v141 @@ -7097,14 +7224,14 @@ and closure62 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : let v223 : bool = Fable.Core.RustInterop.emitRustExpr () v222 let v224 : string = "&sha2::Digest::finalize(v185)" let v225 : Ref> = Fable.Core.RustInterop.emitRustExpr () v224 - let v226 : string = "$0.iter().map(|x| *x).collect()" + let v226 : string = "$0.iter().map(|x| *x).collect::>()" let v227 : Vec = Fable.Core.RustInterop.emitRustExpr v225 v226 - let v228 : string = "$0.into_iter().map(|x| $1(x.clone())).collect()" + let v228 : string = "$0.into_iter().map(|x| $1(x.clone())).collect::>()" let v229 : Vec = Fable.Core.RustInterop.emitRustExpr struct (v227, v137) v228 let v230 : string = "fable_library_rust::NativeArray_::array_from($0)" let v231 : (string []) = Fable.Core.RustInterop.emitRustExpr v229 v230 let v232 : string seq = seq { for i = 0 to v231.Length - 1 do yield v231.[i] } - let v233 : string = method52() + let v233 : string = method54() let v234 : (string -> (string seq -> string)) = String.concat let v235 : (string seq -> string) = v234 v233 let v236 : string = v235 v232 @@ -7114,7 +7241,7 @@ and closure62 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : false let v239 : bool = v238 = false if v239 then - let v240 : US19 = method60(v2, v6, v3, v1, v4) + let v240 : US19 = method62(v2, v6, v3, v1, v4) match v240 with | US19_1(v281, v282) -> (* Error *) let v283 : (string * string) = v6, v282 @@ -7124,8 +7251,8 @@ and closure62 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : let v243 : bool = v241 <> 0 if v243 then let v244 : US0 = US0_2 - let v245 : (unit -> string) = closure59() - let v246 : (unit -> string) = closure60(v242, v241) + let v245 : (unit -> string) = closure61() + let v246 : (unit -> string) = closure62(v242, v241) method3(v244, v245, v246) let v247 : (string * string) = v6, v242 let v248 : Result = Error v247 @@ -7186,7 +7313,7 @@ and closure62 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v272 : string = method53(v5) + let v272 : string = method55(v5) let v273 : string = "std::fs::copy(&*$0, &*v272)" let v274 : Result = Fable.Core.RustInterop.emitRustExpr v6 v273 let v275 : string = "$0.unwrap()" @@ -7223,36 +7350,36 @@ and closure62 (v0 : string, v1 : string, v2 : bool, v3 : string) (v4 : string) : US18_0(v278) else US18_1 -and closure61 (v0 : string, v1 : string, v2 : bool) (v3 : string) : (string -> US18) = - closure62(v0, v1, v2, v3) -and closure65 () () : string = +and closure63 (v0 : string, v1 : string, v2 : bool) (v3 : string) : (string -> US18) = + closure64(v0, v1, v2, v3) +and closure67 () () : string = let v0 : string = "documents.run / par_map / files' = [] / listm.iter" v0 -and closure66 (v0 : string, v1 : string) () : string = +and closure68 (v0 : string, v1 : string) () : string = let v2 : (unit -> string) = closure6() let v3 : string = $"output_path: %A{v1} / output_cache_path: {v0} / {v2 ()}" v3 -and method61 (v0 : UH2, v1 : UH3 list) : UH3 list = +and method63 (v0 : UH2, v1 : UH3 list) : UH3 list = match v0 with | UH2_1(v2, v3) -> (* Cons *) - let v4 : UH3 list = method61(v3, v1) + let v4 : UH3 list = method63(v3, v1) let v5 : UH3 list = v2 :: v4 v5 | UH2_0 -> (* Nil *) v1 -and method62 (v0 : int32, v1 : Mut8) : bool = +and method64 (v0 : int32, v1 : Mut8) : bool = let v2 : int32 = v1.l0 let v3 : bool = v2 < v0 v3 -and method63 (v0 : UH3, v1 : struct (string * string * (string -> (string -> US18))) list) : struct (string * string * (string -> (string -> US18))) list = +and method65 (v0 : UH3, v1 : struct (string * string * (string -> (string -> US18))) list) : struct (string * string * (string -> (string -> US18))) list = match v0 with | UH3_1(v2, v3, v4, v5) -> (* Cons *) - let v6 : struct (string * string * (string -> (string -> US18))) list = method63(v5, v1) + let v6 : struct (string * string * (string -> (string -> US18))) list = method65(v5, v1) let v7 : struct (string * string * (string -> (string -> US18))) list = struct (v2, v3, v4) :: v6 v7 | UH3_0 -> (* Nil *) v1 -and closure67 () struct (v0 : string, v1 : string, v2 : (string -> (string -> US18))) : Result option = +and closure69 () struct (v0 : string, v1 : string, v2 : (string -> (string -> US18))) : Result option = let v3 : (string -> US18) = v2 v1 let v4 : US18 = v3 v0 match v4 with @@ -7262,9 +7389,9 @@ and closure67 () struct (v0 : string, v1 : string, v2 : (string -> (string -> US | US18_0(v5) -> (* Some *) let v6 : Result option = Some v5 v6 -and method64 (v0 : Vec option>) : Vec option> = +and method66 (v0 : Vec option>) : Vec option> = v0 -and method65 (v0 : Vec option>) : Vec option> = +and method67 (v0 : Vec option>) : Vec option> = v0 and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) (v5 : string) : Result<(string * Vec option>), std_string_String> = let v6 : bool = true @@ -7780,7 +7907,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v263 : string = method11(v4, v207) let v264 : string = method34(v263) let v265 : string = "hangul.md" - let struct (v266 : string, v267 : string) = method51(v265, v252, v4) + let struct (v266 : string, v267 : string) = method53(v265, v252, v4) let v268 : bool = false let v269 : bool = false let v270 : bool = false @@ -7924,15 +8051,15 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v353 : bool = Fable.Core.RustInterop.emitRustExpr () v352 let v354 : string = "&sha2::Digest::finalize(v315)" let v355 : Ref> = Fable.Core.RustInterop.emitRustExpr () v354 - let v356 : string = "$0.iter().map(|x| *x).collect()" + let v356 : string = "$0.iter().map(|x| *x).collect::>()" let v357 : Vec = Fable.Core.RustInterop.emitRustExpr v355 v356 - let v358 : string = "$0.into_iter().map(|x| $1(x.clone())).collect()" - let v359 : (uint8 -> string) = closure51() + let v358 : string = "$0.into_iter().map(|x| $1(x.clone())).collect::>()" + let v359 : (uint8 -> string) = closure53() let v360 : Vec = Fable.Core.RustInterop.emitRustExpr struct (v357, v359) v358 let v361 : string = "fable_library_rust::NativeArray_::array_from($0)" let v362 : (string []) = Fable.Core.RustInterop.emitRustExpr v360 v361 let v363 : string seq = seq { for i = 0 to v362.Length - 1 do yield v362.[i] } - let v364 : string = method52() + let v364 : string = method54() let v365 : (string -> (string seq -> string)) = String.concat let v366 : (string seq -> string) = v365 v364 let v367 : string = v366 v363 @@ -8120,14 +8247,14 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v467 : bool = Fable.Core.RustInterop.emitRustExpr () v466 let v468 : string = "&sha2::Digest::finalize(v429)" let v469 : Ref> = Fable.Core.RustInterop.emitRustExpr () v468 - let v470 : string = "$0.iter().map(|x| *x).collect()" + let v470 : string = "$0.iter().map(|x| *x).collect::>()" let v471 : Vec = Fable.Core.RustInterop.emitRustExpr v469 v470 - let v472 : string = "$0.into_iter().map(|x| $1(x.clone())).collect()" + let v472 : string = "$0.into_iter().map(|x| $1(x.clone())).collect::>()" let v473 : Vec = Fable.Core.RustInterop.emitRustExpr struct (v471, v359) v472 let v474 : string = "fable_library_rust::NativeArray_::array_from($0)" let v475 : (string []) = Fable.Core.RustInterop.emitRustExpr v473 v474 let v476 : string seq = seq { for i = 0 to v475.Length - 1 do yield v475.[i] } - let v477 : string = method52() + let v477 : string = method54() let v478 : (string -> (string seq -> string)) = String.concat let v479 : (string seq -> string) = v478 v477 let v480 : string = v479 v476 @@ -8154,8 +8281,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) v490 if v491 then let v492 : US0 = US0_2 - let v493 : (unit -> string) = closure52() - let v494 : (unit -> string) = closure53(v207, v238, v240, v250, v249, v252, v262, v261, v264, v367, v483) + let v493 : (unit -> string) = closure54() + let v494 : (unit -> string) = closure55(v207, v238, v240, v250, v249, v252, v262, v261, v264, v367, v483) method3(v492, v493, v494) let v495 : bool = true let mutable _v495 : unit option = None @@ -8163,7 +8290,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v496 : string = method53(v264) + let v496 : string = method55(v264) let v497 : string = "std::fs::copy(&*$0, &*v496)" let v498 : Result = Fable.Core.RustInterop.emitRustExpr v252 v497 let v499 : string = "$0.unwrap()" @@ -8192,18 +8319,18 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #endif |> fun x -> _v495 <- Some x _v495.Value - let v501 : (string -> (string -> US18)) = closure54(v4, v3, v1, v0) + let v501 : (string -> (string -> US18)) = closure56(v4, v3, v1, v0) let v502 : UH3 = UH3_0 let v503 : UH3 = UH3_1(v265, v252, v501, v502) let v504 : string = "html" - let v505 : (string -> (string -> US18)) = closure61(v4, v3, v268) + let v505 : (string -> (string -> US18)) = closure63(v4, v3, v268) let v506 : string = "pdf" - let v507 : (string -> (string -> US18)) = closure61(v4, v3, v269) + let v507 : (string -> (string -> US18)) = closure63(v4, v3, v269) let v508 : string = "epub" - let v509 : (string -> (string -> US18)) = closure61(v4, v3, v270) - let v510 : (string -> (string -> US18)) = closure61(v4, v3, v271) - let v511 : (string -> (string -> US18)) = closure61(v4, v3, v272) - let v512 : (string -> (string -> US18)) = closure61(v4, v3, v273) + let v509 : (string -> (string -> US18)) = closure63(v4, v3, v270) + let v510 : (string -> (string -> US18)) = closure63(v4, v3, v271) + let v511 : (string -> (string -> US18)) = closure63(v4, v3, v272) + let v512 : (string -> (string -> US18)) = closure63(v4, v3, v273) let v513 : UH3 = UH3_0 let v514 : UH3 = UH3_1(v508, v267, v512, v513) let v515 : UH3 = UH3_1(v506, v267, v511, v514) @@ -8230,7 +8357,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) v526 else let v530 : string = "epub" - let struct (v531 : string, v532 : string) = method51(v530, v267, v4) + let struct (v531 : string, v532 : string) = method53(v530, v267, v4) let v533 : bool = true let mutable _v533 : bool option = None @@ -8333,8 +8460,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v576 : bool = _v556.Value if v576 then let v577 : US0 = US0_2 - let v578 : (unit -> string) = closure65() - let v579 : (unit -> string) = closure66(v531, v532) + let v578 : (unit -> string) = closure67() + let v579 : (unit -> string) = closure68(v531, v532) method3(v577, v578, v579) let v580 : bool = true let mutable _v580 : unit option = None @@ -8342,7 +8469,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v581 : string = method53(v532) + let v581 : string = method55(v532) let v582 : string = "std::fs::copy(&*$0, &*v581)" let v583 : Result = Fable.Core.RustInterop.emitRustExpr v531 v582 let v584 : string = "$0.unwrap()" @@ -8378,13 +8505,13 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) true let v592 : UH3 = if v587 then - let v588 : (string -> (string -> US18)) = closure61(v4, v3, v273) + let v588 : (string -> (string -> US18)) = closure63(v4, v3, v273) let v589 : UH3 = UH3_0 UH3_1(v530, v267, v588, v589) else UH3_0 let v593 : string = "pdf" - let struct (v594 : string, v595 : string) = method51(v593, v267, v4) + let struct (v594 : string, v595 : string) = method53(v593, v267, v4) let v596 : bool = true let mutable _v596 : bool option = None @@ -8486,8 +8613,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v638 : bool = _v618.Value if v638 then let v639 : US0 = US0_2 - let v640 : (unit -> string) = closure65() - let v641 : (unit -> string) = closure66(v594, v595) + let v640 : (unit -> string) = closure67() + let v641 : (unit -> string) = closure68(v594, v595) method3(v639, v640, v641) let v642 : bool = true let mutable _v642 : unit option = None @@ -8495,7 +8622,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v643 : string = method53(v595) + let v643 : string = method55(v595) let v644 : string = "std::fs::copy(&*$0, &*v643)" let v645 : Result = Fable.Core.RustInterop.emitRustExpr v594 v644 let v646 : string = "$0.unwrap()" @@ -8531,12 +8658,12 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) true let v652 : UH3 = if v649 then - let v650 : (string -> (string -> US18)) = closure61(v4, v3, v272) + let v650 : (string -> (string -> US18)) = closure63(v4, v3, v272) UH3_1(v593, v267, v650, v592) else v592 let v653 : string = "html" - let struct (v654 : string, v655 : string) = method51(v653, v267, v4) + let struct (v654 : string, v655 : string) = method53(v653, v267, v4) let v656 : bool = true let mutable _v656 : bool option = None @@ -8638,8 +8765,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v698 : bool = _v678.Value if v698 then let v699 : US0 = US0_2 - let v700 : (unit -> string) = closure65() - let v701 : (unit -> string) = closure66(v654, v655) + let v700 : (unit -> string) = closure67() + let v701 : (unit -> string) = closure68(v654, v655) method3(v699, v700, v701) let v702 : bool = true let mutable _v702 : unit option = None @@ -8647,7 +8774,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v703 : string = method53(v655) + let v703 : string = method55(v655) let v704 : string = "std::fs::copy(&*$0, &*v703)" let v705 : Result = Fable.Core.RustInterop.emitRustExpr v654 v704 let v706 : string = "$0.unwrap()" @@ -8683,11 +8810,11 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) true let v712 : UH3 = if v709 then - let v710 : (string -> (string -> US18)) = closure61(v4, v3, v271) + let v710 : (string -> (string -> US18)) = closure63(v4, v3, v271) UH3_1(v653, v267, v710, v652) else v652 - let struct (v713 : string, v714 : string) = method51(v530, v252, v4) + let struct (v713 : string, v714 : string) = method53(v530, v252, v4) let v715 : bool = true let mutable _v715 : bool option = None @@ -8789,8 +8916,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v757 : bool = _v737.Value if v757 then let v758 : US0 = US0_2 - let v759 : (unit -> string) = closure65() - let v760 : (unit -> string) = closure66(v713, v714) + let v759 : (unit -> string) = closure67() + let v760 : (unit -> string) = closure68(v713, v714) method3(v758, v759, v760) let v761 : bool = true let mutable _v761 : unit option = None @@ -8798,7 +8925,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v762 : string = method53(v714) + let v762 : string = method55(v714) let v763 : string = "std::fs::copy(&*$0, &*v762)" let v764 : Result = Fable.Core.RustInterop.emitRustExpr v713 v763 let v765 : string = "$0.unwrap()" @@ -8834,11 +8961,11 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) true let v771 : UH3 = if v768 then - let v769 : (string -> (string -> US18)) = closure61(v4, v3, v270) + let v769 : (string -> (string -> US18)) = closure63(v4, v3, v270) UH3_1(v530, v252, v769, v712) else v712 - let struct (v772 : string, v773 : string) = method51(v593, v252, v4) + let struct (v772 : string, v773 : string) = method53(v593, v252, v4) let v774 : bool = true let mutable _v774 : bool option = None @@ -8940,8 +9067,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v816 : bool = _v796.Value if v816 then let v817 : US0 = US0_2 - let v818 : (unit -> string) = closure65() - let v819 : (unit -> string) = closure66(v772, v773) + let v818 : (unit -> string) = closure67() + let v819 : (unit -> string) = closure68(v772, v773) method3(v817, v818, v819) let v820 : bool = true let mutable _v820 : unit option = None @@ -8949,7 +9076,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v821 : string = method53(v773) + let v821 : string = method55(v773) let v822 : string = "std::fs::copy(&*$0, &*v821)" let v823 : Result = Fable.Core.RustInterop.emitRustExpr v772 v822 let v824 : string = "$0.unwrap()" @@ -8985,11 +9112,11 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) true let v830 : UH3 = if v827 then - let v828 : (string -> (string -> US18)) = closure61(v4, v3, v269) + let v828 : (string -> (string -> US18)) = closure63(v4, v3, v269) UH3_1(v593, v252, v828, v771) else v771 - let struct (v831 : string, v832 : string) = method51(v653, v252, v4) + let struct (v831 : string, v832 : string) = method53(v653, v252, v4) let v833 : bool = true let mutable _v833 : bool option = None @@ -9091,8 +9218,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v875 : bool = _v855.Value if v875 then let v876 : US0 = US0_2 - let v877 : (unit -> string) = closure65() - let v878 : (unit -> string) = closure66(v831, v832) + let v877 : (unit -> string) = closure67() + let v878 : (unit -> string) = closure68(v831, v832) method3(v876, v877, v878) let v879 : bool = true let mutable _v879 : unit option = None @@ -9100,7 +9227,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v880 : string = method53(v832) + let v880 : string = method55(v832) let v881 : string = "std::fs::copy(&*$0, &*v880)" let v882 : Result = Fable.Core.RustInterop.emitRustExpr v831 v881 let v883 : string = "$0.unwrap()" @@ -9136,11 +9263,11 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) true let v889 : UH3 = if v886 then - let v887 : (string -> (string -> US18)) = closure61(v4, v3, v268) + let v887 : (string -> (string -> US18)) = closure63(v4, v3, v268) UH3_1(v653, v252, v887, v830) else v830 - let struct (v890 : string, v891 : string) = method51(v265, v252, v4) + let struct (v890 : string, v891 : string) = method53(v265, v252, v4) let v892 : bool = true let mutable _v892 : bool option = None @@ -9242,8 +9369,8 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v934 : bool = _v914.Value if v934 then let v935 : US0 = US0_2 - let v936 : (unit -> string) = closure65() - let v937 : (unit -> string) = closure66(v890, v891) + let v936 : (unit -> string) = closure67() + let v937 : (unit -> string) = closure68(v890, v891) method3(v935, v936, v937) let v938 : bool = true let mutable _v938 : unit option = None @@ -9251,7 +9378,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) #if FABLE_COMPILER || WASM || CONTRACT #if FABLE_COMPILER_RUST && !WASM && !CONTRACT - let v939 : string = method53(v891) + let v939 : string = method55(v891) let v940 : string = "std::fs::copy(&*$0, &*v939)" let v941 : Result = Fable.Core.RustInterop.emitRustExpr v890 v940 let v942 : string = "$0.unwrap()" @@ -9287,7 +9414,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) true let v950 : UH3 = if v945 then - let v946 : (string -> (string -> US18)) = closure54(v4, v3, v1, v0) + let v946 : (string -> (string -> US18)) = closure56(v4, v3, v1, v0) let v947 : UH3 = UH3_0 UH3_1(v265, v252, v946, v947) else @@ -9296,7 +9423,7 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v952 : UH2 = UH2_1(v889, v951) UH2_1(v950, v952) let v955 : UH3 list = [] - let v956 : UH3 list = method61(v954, v955) + let v956 : UH3 list = method63(v954, v955) let v957 : (UH3 list -> (UH3 [])) = List.toArray let v958 : (UH3 []) = v957 v956 let v959 : string = "$0.to_vec()" @@ -9308,12 +9435,12 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v965 : (UH3 []) = Fable.Core.RustInterop.emitRustExpr v960 v964 let v966 : int32 = v965.Length let v967 : Mut8 = {l0 = 0; l1 = v963} : Mut8 - while method62(v966, v967) do + while method64(v966, v967) do let v969 : int32 = v967.l0 let v970 : Vec option> = v967.l1 let v971 : UH3 = v965.[int v969] let v972 : struct (string * string * (string -> (string -> US18))) list = [] - let v973 : struct (string * string * (string -> (string -> US18))) list = method63(v971, v972) + let v973 : struct (string * string * (string -> (string -> US18))) list = method65(v971, v972) let v974 : (struct (string * string * (string -> (string -> US18))) list -> (struct (string * string * (string -> (string -> US18))) [])) = List.toArray let v975 : (struct (string * string * (string -> (string -> US18))) []) = v974 v973 let v976 : string = "$0.to_vec()" @@ -9321,12 +9448,12 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v978 : string = "rayon::iter::IntoParallelIterator::into_par_iter(v977)" let v979 : rayon_vec_IntoIter (string -> US18)))> = Fable.Core.RustInterop.emitRustExpr () v978 let v980 : string = "rayon::iter::ParallelIterator::map($0, |x| $1(x))" - let v981 : (struct (string * string * (string -> (string -> US18))) -> Result option) = closure67() + let v981 : (struct (string * string * (string -> (string -> US18))) -> Result option) = closure69() let v982 : rayon_iter_Map (string -> US18)))>> = Fable.Core.RustInterop.emitRustExpr struct (v979, v981) v980 let v983 : string = "rayon::iter::ParallelIterator::collect($0)" let v984 : Vec option> = Fable.Core.RustInterop.emitRustExpr v982 v983 - let v985 : Vec option> = method64(v984) - let v986 : Vec option> = method65(v970) + let v985 : Vec option> = method66(v984) + let v986 : Vec option> = method67(v970) let v987 : string = "true; let mut v986 = v986" let v988 : bool = Fable.Core.RustInterop.emitRustExpr () v987 let v989 : string = "true; v986.extend(v985)" @@ -9341,16 +9468,16 @@ and closure22 (v0 : string, v1 : string, v2 : string, v3 : string, v4 : string) let v995 : (string * Vec option>) = v238, v994 let v996 : Result<(string * Vec option>), std_string_String> = Ok v995 v996 -and closure68 () () : string = +and closure70 () () : string = let v0 : string = "documents.run" v0 -and closure69 (v0 : Vec option>), std_string_String>>) () : string = +and closure71 (v0 : Vec option>), std_string_String>>) () : string = let v1 : string = "$0.len()" let v2 : unativeint = Fable.Core.RustInterop.emitRustExpr v0 v1 let v3 : (unit -> string) = closure6() let v4 : string = $"result_len: {v2} / {v3 ()}" v4 -and method66 (v0 : Result option>), std_string_String>>, std_string_String>) : Result option>), std_string_String>>, std_string_String> = +and method68 (v0 : Result option>), std_string_String>>, std_string_String>) : Result option>), std_string_String>>, std_string_String> = v0 and method10 (v0 : string, v1 : string, v2 : string, v3 : string) : std_pin_Pin option>), std_string_String>>, std_string_String>>>>> = let v4 : string = __SOURCE_DIRECTORY__ @@ -10451,7 +10578,7 @@ and method10 (v0 : string, v1 : string, v2 : string, v3 : string) : std_pin_Pin< let v539 : string = "async_walkdir::WalkDir::new(&*$0)" let v540 : async_walkdir_WalkDir = Fable.Core.RustInterop.emitRustExpr v359 v539 let v541 : string = "async_walkdir::WalkDir::filter($0, |x| $1(x))" - let v542 : (async_walkdir_DirEntry -> std_pin_Pin>>>>) = closure11() + let v542 : (async_walkdir_DirEntry -> std_pin_Pin>, Send>>>>>) = closure11() let v543 : async_walkdir_WalkDir = Fable.Core.RustInterop.emitRustExpr struct (v540, v542) v541 let v544 : (Result -> string option) = method33() let v545 : string = "futures_lite::stream::StreamExt::collect(futures_lite::stream::StreamExt::filter_map(v543, |x| v544(x))).await" @@ -10468,11 +10595,11 @@ and method10 (v0 : string, v1 : string, v2 : string, v3 : string) : std_pin_Pin< let v555 : string = "rayon::iter::ParallelIterator::collect($0)" let v556 : Vec option>), std_string_String>> = Fable.Core.RustInterop.emitRustExpr v554 v555 let v557 : US0 = US0_2 - let v558 : (unit -> string) = closure68() - let v559 : (unit -> string) = closure69(v556) + let v558 : (unit -> string) = closure70() + let v559 : (unit -> string) = closure71(v556) method3(v557, v558, v559) let v560 : Result option>), std_string_String>>, std_string_String> = Ok v556 - let v561 : Result option>), std_string_String>>, std_string_String> = method66(v560) + let v561 : Result option>), std_string_String>>, std_string_String> = method68(v560) let v562 : string = "v561 }}}})" Fable.Core.RustInterop.emitRustExpr () v562 let v563 : string = "{{{ //" diff --git a/apps/documents/documents.rs b/apps/documents/documents.rs index 0b190076..91ddbb5a 100644 --- a/apps/documents/documents.rs +++ b/apps/documents/documents.rs @@ -41,9 +41,11 @@ mod module_2555ccf7 { use fable_library_rust::Native_::OnceInit; use fable_library_rust::Option_::defaultValue; use fable_library_rust::Option_::getValue; + use fable_library_rust::Option_::map as map_1; use fable_library_rust::Range_::rangeNumeric; use fable_library_rust::Seq_::delay; use fable_library_rust::Seq_::map; + use fable_library_rust::Seq_::ofArray as ofArray_1; use fable_library_rust::Seq_::ofList; use fable_library_rust::Seq_::toArray; use fable_library_rust::String_::append; @@ -7005,7 +7007,7 @@ mod module_2555ccf7 { Err(v6_1_0) => Documents::closure33((), v6_1_0.clone()), Ok(v6_0_0) => Documents::closure32((), v6_0_0.clone()), }; - let v40: std::string::String = match &v9 { + let v41: std::string::String = match &v9 { Documents::US12::US12_0(v9_0_0) => { let v12: string = fable_library_rust::String_::fromString(v9_0_0.clone()); let v14: &encoding_rs::Encoding = encoding_rs::UTF_8; @@ -7014,45 +7016,58 @@ mod module_2555ccf7 { let v20: Result<&str, std::str::Utf8Error> = std::str::from_utf8(v18); let v22: &str = v20.unwrap(); let v24: std::string::String = String::from(v22); - let v26: string = fable_library_rust::String_::fromString(v24.clone()); + let v27: string = + sprintf!("> {}", fable_library_rust::String_::fromString(v24.clone())); if v0_1 { Documents::method3( Documents::US0::US0_0, Func0::new({ - let v26 = v26.clone(); - move || Documents::closure36(v26.clone(), ()) + let v27 = v27.clone(); + move || Documents::closure36(v27.clone(), ()) }), Func0::new(move || Documents::closure6((), ())), ) } else { - printfn!("{0}", v26.clone()); + printfn!("{0}", v27.clone()); () } v24 } Documents::US12::US12_1(v9_1_0) => { - let v30: std::string::String = v9_1_0.clone(); + let v31: std::string::String = v9_1_0.clone(); Documents::method3( Documents::US0::US0_4, Func0::new(move || Documents::closure34((), ())), Func0::new({ - let v30 = v30.clone(); - move || Documents::closure35(v30.clone(), ()) + let v31 = v31.clone(); + move || Documents::closure35(v31.clone(), ()) }), ); { - let v34: string = sprintf!("\\e[4;7m{}\\e[0m", v30.clone()); - let v36: &str = &*v34; - String::from(v36) + let v35: string = sprintf!("\u{001b}[4;7m{}\u{001b}[0m", v31.clone()); + let v37: &str = &*v35; + String::from(v37) } } }; - let v42: bool = true; - v1_1.lock().unwrap().send(v40).unwrap(); + let v43: Result< + std::sync::MutexGuard>, + std::sync::PoisonError< + std::sync::MutexGuard>, + >, + > = v1_1.lock(); + let v45: std::sync::MutexGuard> = + v43.unwrap(); + let v47: &std::sync::mpsc::Sender = &v45; + let v49: Result<(), std::sync::mpsc::SendError> = v47.send(v41); + v49.unwrap(); _v3.set(Some(())); getValue(_v3.get().clone()); () } + pub fn method46() -> bool { + true + } pub fn closure37( v0_1: bool, v1_1: std::sync::Arc>>, @@ -7065,7 +7080,7 @@ mod module_2555ccf7 { Err(v6_1_0) => Documents::closure33((), v6_1_0.clone()), Ok(v6_0_0) => Documents::closure32((), v6_0_0.clone()), }; - let v41: std::string::String = match &v9 { + let v46: std::string::String = match &v9 { Documents::US12::US12_0(v9_0_0) => { let v12: string = fable_library_rust::String_::fromString(v9_0_0.clone()); let v14: &encoding_rs::Encoding = encoding_rs::UTF_8; @@ -7074,10 +7089,8 @@ mod module_2555ccf7 { let v20: Result<&str, std::str::Utf8Error> = std::str::from_utf8(v18); let v22: &str = v20.unwrap(); let v24: std::string::String = String::from(v22); - let v27: string = sprintf!( - "\\e[4;7m{}\\e[0m", - fable_library_rust::String_::fromString(v24.clone()) - ); + let v27: string = + sprintf!("! {}", fable_library_rust::String_::fromString(v24.clone())); if v0_1 { Documents::method3( Documents::US0::US0_0, @@ -7091,52 +7104,114 @@ mod module_2555ccf7 { printfn!("{0}", v27.clone()); () } - v24 + { + let v31: string = sprintf!("\u{001b}[4;7m{}\u{001b}[0m", v24); + let v33: &str = &*v31; + String::from(v33) + } } Documents::US12::US12_1(v9_1_0) => { - let v31: std::string::String = v9_1_0.clone(); + let v36: std::string::String = v9_1_0.clone(); Documents::method3( Documents::US0::US0_4, Func0::new(move || Documents::closure34((), ())), Func0::new({ - let v31 = v31.clone(); - move || Documents::closure35(v31.clone(), ()) + let v36 = v36.clone(); + move || Documents::closure35(v36.clone(), ()) }), ); { - let v35: string = sprintf!("\\e[4;7m{}\\e[0m", v31.clone()); - let v37: &str = &*v35; - String::from(v37) + let v40: string = sprintf!("\u{001b}[4;7m{}\u{001b}[0m", v36.clone()); + let v42: &str = &*v40; + String::from(v42) } } }; - let v43: bool = true; - v1_1.lock().unwrap().send(v41).unwrap(); + let v48: Result< + std::sync::MutexGuard>, + std::sync::PoisonError< + std::sync::MutexGuard>, + >, + > = v1_1.lock(); + let v50: std::sync::MutexGuard> = + v48.unwrap(); + let v52: &std::sync::mpsc::Sender = &v50; + let v54: Result<(), std::sync::mpsc::SendError> = v52.send(v46); + v54.unwrap(); _v3.set(Some(())); getValue(_v3.get().clone()); () } - pub fn method46( + pub fn method47( v0_1: std::sync::MutexGuard, ) -> std::sync::MutexGuard { v0_1 } - pub fn closure38(unitVar: (), v0_1: std::process::Output) -> Documents::US15 { + pub fn method48(v0_1: std::thread::JoinHandle) -> std::thread::JoinHandle { + v0_1 + } + pub fn closure38(unitVar: (), v0_1: std::thread::JoinHandle) { + let v2: Result> = + std::thread::JoinHandle::join(v0_1); + let v4: bool = v2.unwrap(); + () + } + pub fn closure39(unitVar: (), v0_1: std::process::Output) -> Documents::US15 { Documents::US15::US15_0(v0_1) } - pub fn closure39(unitVar: (), v0_1: std::string::String) -> Documents::US15 { + pub fn closure40(unitVar: (), v0_1: std::string::String) -> Documents::US15 { Documents::US15::US15_1(v0_1) } - pub fn closure40(unitVar: (), unitVar_1: ()) -> string { + pub fn closure41(unitVar: (), unitVar_1: ()) -> string { string("runtime.execute_with_options / output error") } - pub fn closure41(v0_1: std::string::String, unitVar: ()) -> string { + pub fn closure42(v0_1: std::string::String, unitVar: ()) -> string { sprintf!("error: {} / {}", v0_1, Documents::closure6((), ())) } - pub fn closure42(unitVar: (), unitVar_1: ()) -> string { + pub fn method49() -> string { + string("\n") + } + pub fn closure43( + unitVar: (), + v0_1: std::sync::Arc< + std::sync::Mutex>>, + >, + ) -> string { + let v2: Result< + std::sync::MutexGuard< + std::sync::Arc>, + >, + std::sync::PoisonError< + std::sync::MutexGuard< + std::sync::Arc>, + >, + >, + > = v0_1.lock(); + let v4: std::sync::MutexGuard< + std::sync::Arc>, + > = v2.unwrap(); + let v6 = v4.iter(); + let v8: Vec = v6.collect::>(); + let v10: bool = true; + let _result = v8 + .into_iter() + .map(|x| { + //; + let v12: std::string::String = x; + let v14: string = fable_library_rust::String_::fromString(v12); + let v16: bool = true; + v14 + }) + .collect::>(); + let v18: Vec = _result; + let v22: LrcPtr> = + ofArray_1(fable_library_rust::NativeArray_::array_from(v18)); + join(Documents::method49(), toArray(v22)) + } + pub fn closure44(unitVar: (), unitVar_1: ()) -> string { string("runtime.execute_with_options / result") } - pub fn closure43(v0_1: i32, v1_1: string, unitVar: ()) -> string { + pub fn closure45(v0_1: i32, v1_1: string, unitVar: ()) -> string { sprintf!( "exit_code: {} / std_trace.Length: {} / {}", v0_1, @@ -7144,10 +7219,10 @@ mod module_2555ccf7 { Documents::closure6((), ()) ) } - pub fn method47(v0_: i32, v0__1: string) -> LrcPtr<(i32, string)> { + pub fn method50(v0_: i32, v0__1: string) -> LrcPtr<(i32, string)> { LrcPtr::new((v0_, v0__1)) } - pub fn closure44( + pub fn closure46( v0_1: Option, v1_1: string, v2: Array<(string, string)>, @@ -7162,13 +7237,13 @@ mod module_2555ccf7 { (v0_1, v1_1, v2, v3, v4, v5, v6) ) } - pub fn method49() -> Func0 { + pub fn method52() -> Func0 { Func0::new(move || Documents::closure6((), ())) } - pub fn closure46(v0_1: string, unitVar: ()) -> string { + pub fn closure48(v0_1: string, unitVar: ()) -> string { v0_1 } - pub fn closure45( + pub fn closure47( v0_1: Option, v1_1: string, v2: Array<(string, string)>, @@ -7194,7 +7269,7 @@ mod module_2555ccf7 { () } } - pub fn closure47( + pub fn closure49( v0_1: Option, v1_1: string, v2: Array<(string, string)>, @@ -7220,7 +7295,7 @@ mod module_2555ccf7 { () } } - pub fn closure48(v0_1: (), unitVar: ()) { + pub fn closure50(v0_1: (), unitVar: ()) { let _v1: MutCell> = MutCell::new(None::); { let x: bool = unbox::(&defaultOf()); @@ -7234,23 +7309,20 @@ mod module_2555ccf7 { () } } - pub fn closure49(v0_1: LrcPtr, unitVar: ()) -> string { + pub fn closure51(v0_1: LrcPtr, unitVar: ()) -> string { sprintf!( "execute_with_options_async / WaitForExitAsync / ex: {:?}", v0_1 ) } - pub fn method50() -> string { - string("\n") - } - pub fn closure50(v0_1: i32, v1_1: string, unitVar: ()) -> string { + pub fn closure52(v0_1: i32, v1_1: string, unitVar: ()) -> string { sprintf!( "execute_with_options_async / exit_code: {} / output.Length: {}", v0_1, length(v1_1) ) } - pub fn method48( + pub fn method51( v0_1: Option, v1_1: string, v2: Array<(string, string)>, @@ -7330,7 +7402,7 @@ mod module_2555ccf7 { let v41: bool = true; v39 }) - .collect(); + .collect::>(); let v43: Vec = _result; Documents::method3( Documents::US0::US0_1, @@ -7619,36 +7691,36 @@ mod module_2555ccf7 { >, >, > = std::sync::Arc::new(v155); - let v159: std::thread::JoinHandle<()> = - std::thread::spawn(move || { - //; - let v161: std::process::ChildStdout = + let __result = std::thread::spawn(move || { + //; + { + let v160: std::process::ChildStdout = v129.lock() .unwrap() .take() .unwrap(); - let v163: - encoding_rs_io::DecodeReaderBytes> = - encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v161); - let v165: std::io::BufReader< + let v162: + encoding_rs_io::DecodeReaderBytes> = + encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v160); + let v164: std::io::BufReader< encoding_rs_io::DecodeReaderBytes< std::process::ChildStdout, Vec, >, - > = std::io::BufReader::new(v163); - let v167: - std::sync::Mutex>>> = - std::sync::Mutex::new(v165); + > = std::io::BufReader::new(v162); + let v166: + std::sync::Mutex>>> = + std::sync::Mutex::new(v164); + let v168: + std::sync::Arc>>>> = + std::sync::Arc::new(v166); let v169: - std::sync::Arc>>>> = - std::sync::Arc::new(v167); - let v170: - string = - string("true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }"); - let v172: bool = true; + string = + string("true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }"); + let v171: bool = true; for line in std::io::BufRead::lines( std::io::Read::by_ref( - &mut *v169.lock().unwrap(), + &mut *v168.lock().unwrap(), ), ) .collect::>() @@ -7656,282 +7728,353 @@ mod module_2555ccf7 { Func1::new({ let v151 = v151.clone(); move - |v_2: - Result| - Documents::closure31(v5, - v151.clone(), - v_2) - })( - line - ) - } - let v174: bool = true; - }); - let v176: std::thread::JoinHandle<()> = - std::thread::spawn(move || { - //; - let v178: std::process::ChildStderr = - v134.lock() - .unwrap() - .take() - .unwrap(); - let v180: - encoding_rs_io::DecodeReaderBytes> = - encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v178); - let v182: std::io::BufReader< - encoding_rs_io::DecodeReaderBytes< - std::process::ChildStderr, - Vec, - >, - > = std::io::BufReader::new(v180); - let v184: - std::sync::Mutex>>> = - std::sync::Mutex::new(v182); - let v186: - std::sync::Arc>>>> = - std::sync::Arc::new(v184); - let v187: - string = - string("true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }"); - let v189: bool = true; - for line in std::io::BufRead::lines( - std::io::Read::by_ref( - &mut *v186.lock().unwrap(), - ), - ) - .collect::>() - { - Func1::new({ - let v149 = v149.clone(); - move - |v_3: - Result| - Documents::closure37(v5, - v149.clone(), - v_3) + |v_2: + Result| + Documents::closure31(v5, + v151.clone(), + v_2) })( line ) } - let v191: bool = true; - }); - let _v192: LrcPtr< - MutCell>, - > = refCell(None::); + let v172: bool = Documents::method46(); + v172 + } + }); { - let x_5: Option = match &v4 + //; { - None => None::, - Some(v4_0_0) => { - let x_3 = v4_0_0.clone(); - Some((Func0::new({ - let x_3 = x_3.clone(); - move || { - Documents::US13::US13_0( - x_3.clone(), - ) + let v176: std::thread::JoinHandle< + bool, + > = __result; + let __result = std::thread::spawn( + move || { + //; + { + let v179: + std::process::ChildStderr = + v134.lock().unwrap().take().unwrap(); + let v181: + encoding_rs_io::DecodeReaderBytes> = + encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build(v179); + let v183: + std::io::BufReader>> = + std::io::BufReader::new(v181); + let v185: + std::sync::Mutex>>> = + std::sync::Mutex::new(v183); + let v187: + std::sync::Arc>>>> = + std::sync::Arc::new(v185); + let v188: + string = + string("true; for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *$0.lock().unwrap())).collect::>() { $1(line) }"); + let v190: bool = true; + for line in std::io::BufRead::lines(std::io::Read::by_ref(&mut *v187.lock().unwrap())).collect::>() { Func1::new({ + let v149 + = + v149.clone(); + move + |v_3: + Result| + Documents::closure37(v5, + v149.clone(), + v_3) + })(line) }; + let v191: bool = + Documents::method46(); + v191 } - }))( - )) - } - }; - _v192.set(x_5) - } - { - let v197: Documents::US13 = defaultValue( - Documents::US13::US13_1, - _v192.get().clone(), - ); - match &v197 { - Documents::US13::US13_0(v197_0_0) => { - let v200: Option< - std::process::ChildStdin, - > = v139.lock().unwrap().take(); - let v202: bool = true; - let _result = v200.map(|x| { //; - let v204: - std::process::ChildStdin = - x; - let v206: - std::sync::Mutex = - std::sync::Mutex::new(v204); - let v208: - std::sync::Arc> = - std::sync::Arc::new(v206); - let v210: - bool = - true; v208 }); - let v212: - Option>> = - _result; - let _v213: LrcPtr< - MutCell< - Option, - >, - > = refCell( - None::, - ); + }, + ); + { + //; { - let x_8: Option< - Documents::US14, - > = match &v212 { - None => { - None:: - } - Some(v212_0_0) => { - let x_6: + let v195: + std::thread::JoinHandle = + __result; + let _v196: LrcPtr< + MutCell< + Option, + >, + > = refCell( + None::, + ); + { + let x_5: Option< + Documents::US13, + > = match &v4 { + None => { + None::< + Documents::US13, + > + } + Some(v4_0_0) => { + let x_3 = + v4_0_0.clone(); + Some((Func0::new( + { + let x_3 + = + x_3.clone(); + move || { + Documents::US13::US13_0(x_3.clone()) + } + }, + ))( + )) + } + }; + _v196.set(x_5) + } + { + let v201: + Documents::US13 = + defaultValue(Documents::US13::US13_1, + _v196.get().clone()); + match &v201 + { + Documents::US13::US13_0(v201_0_0) + => + { + let v204: + Result>, + std::sync::PoisonError>>> = + v139.lock(); + let v206: + std::sync::MutexGuard> = + v204.unwrap(); + let v208: + bool = + true; let mut v206 = v206; + let v210: + &mut Option = + &mut v206; + let v212: + Option = + Option::take(v210); + let v214: + bool = + true; let _result = v212.map(|x| { //; + let v216: + std::process::ChildStdin = + x; + let v218: + std::sync::Mutex = + std::sync::Mutex::new(v216); + let v220: std::sync::Arc> = - v212_0_0.clone(); - Some((Func0::new({ - let x_6 = - x_6.clone(); - move || { - Documents::US14::US14_0(x_6.clone()) - } - }))( - )) - } - }; - _v213.set(x_8) - } - { - let v218: Documents::US14 = - defaultValue( - Documents::US14::US14_1, - _v213.get().clone(), - ); - match &v218 { - Documents::US14::US14_0( - v218_0_0, - ) => { - let v219: - std::sync::Arc> = - match &v218 + std::sync::Arc::new(v218); + let v222: + bool = + true; v220 }); + let v224: + Option>> = + _result; + let _v225: + LrcPtr>> = + refCell(None::); + { + let x_8: + Option = + match &v224 + { + None + => + None::, + Some(v224_0_0) + => + { + let x_6: + std::sync::Arc> = + v224_0_0.clone(); + Some((Func0::new({ + let x_6 + = + x_6.clone(); + move + || + Documents::US14::US14_0(x_6.clone()) + }))()) + } + }; + _v225.set(x_8) + } + { + let v230: + Documents::US14 = + defaultValue(Documents::US14::US14_1, + _v225.get().clone()); + match &v230 + { + Documents::US14::US14_0(v230_0_0) + => + { + let v231: + std::sync::Arc> = + match &v230 + { + Documents::US14::US14_0(x) + => + x.clone(), + _ + => + unreachable!(), + }; + (match &v201 + { + Documents::US13::US13_0(x) + => + x.clone(), + _ + => + unreachable!(), + })(v231.clone()); + { + let v233: + Result, + std::sync::PoisonError>> = + v231.lock(); + let v236: + std::sync::MutexGuard = + Documents::method47(v233.unwrap()); + let v238: + bool = + true; let mut v236 = v236; + let v240: + bool = + true; std::io::Write::flush(&mut *v236).unwrap(); + () + } + } + _ + => + (), + } + } + } + _ + => + (), + } + { + let v242: + Result>, + std::sync::PoisonError>>> = + v118.lock(); + let v244: + std::sync::MutexGuard> = + v242.unwrap(); + let v246: bool = true; + let mut v244 = v244; + let v248: &mut Option< + std::process::Child, + > = &mut v244; + let v250: Option< + std::process::Child, + > = Option::take(v248); + let v252: + std::process::Child = + v250.unwrap(); + let v254: + Result = + v252.wait_with_output(); + let v255 = + Documents::method29( + ); + let v257: + Result = + v254.map_err(|x| v255(x)); + let v258: + std::thread::JoinHandle = + Documents::method48(v176); + let v262: string = + string("v258"); + let v263: + std::thread::JoinHandle = + Documents::method48(v195); + let v268: + string = + append(append(string("vec!["), + append(string("v263,"), + v262)), + string("]")); + let v269: + Vec> = + vec![v263,v258]; + v269.into_iter().for_each(|x| { Func1::new(move + |v_4: + std::thread::JoinHandle| + Documents::closure38((), + v_4))(x); }); + { + let v274: + Documents::US15 = + match &v257 + { + Err(v257_1_0) + => + Documents::closure40((), + v257_1_0.clone()), + Ok(v257_0_0) + => + Documents::closure39((), + v257_0_0.clone()), + }; + match &v274 { - Documents::US14::US14_0(x) + Documents::US15::US15_0(v274_0_0) => - x.clone(), - _ + { + let v277: + std::process::ExitStatus = + v274_0_0.clone().status; + let v279: + Option = + v277.code(); + (v279.unwrap(), + Documents::US2::US2_1, + Documents::US11::US11_0(v157)) + } + Documents::US15::US15_1(v274_1_0) => - unreachable!(), - }; - (match &v197 - { - Documents::US13::US13_0(x) - => - x.clone(), - _ - => - unreachable!(), - })(v219.clone()); - { - let v221: - Result, - std::sync::PoisonError>> = - v219.lock(); - let v224: - std::sync::MutexGuard = - Documents::method46(v221.unwrap()); - let v226: bool = - true; - let mut v224 = v224; - let v228: bool = - true; - std::io::Write::flush(&mut *v224).unwrap(); - () + { + let v284: + std::string::String = + v274_1_0.clone(); + Documents::method3(Documents::US0::US0_4, + Func0::new(move + || + Documents::closure41((), + ())), + Func0::new({ + let v284 + = + v284.clone(); + move + || + Documents::closure42(v284.clone(), + ()) + })); + (-2_i32, + Documents::US2::US2_0(v284.clone()), + Documents::US11::US11_1) + } + } } } - _ => (), } } } - _ => (), - } - { - let v230: Result< - std::process::Output, - std::io::Error, - > = v118 - .lock() - .unwrap() - .take() - .unwrap() - .wait_with_output(); - let v231 = Documents::method29(); - let v233: Result< - std::process::Output, - std::string::String, - > = v230.map_err(|x| v231(x)); - let v235: bool = true; - v159.join().unwrap(); - let v237: bool = true; - v176.join().unwrap(); - let v240: Documents::US15 = match &v233 - { - Err(v233_1_0) => { - Documents::closure39( - (), - v233_1_0.clone(), - ) - } - Ok(v233_0_0) => { - Documents::closure38( - (), - v233_0_0.clone(), - ) - } - }; - match &v240 { - Documents::US15::US15_0( - v240_0_0, - ) => ( - v240_0_0 - .clone() - .status - .code() - .unwrap(), - Documents::US2::US2_1, - Documents::US11::US11_0(v157), - ), - Documents::US15::US15_1( - v240_1_0, - ) => { - let v246: std::string::String = - v240_1_0.clone(); - Documents::method3( - Documents::US0::US0_4, - Func0::new(move || { - Documents::closure40( - (), - (), - ) - }), - Func0::new({ - let v246 = v246.clone(); - move || { - Documents::closure41( - v246.clone(), - (), - ) - } - }), - ); - ( - -2_i32, - Documents::US2::US2_0( - v246.clone(), - ), - Documents::US11::US11_1, - ) - } - } } } } Documents::US10::US10_1(v117_1_0) => { - let v258: std::string::String = + let v296: std::string::String = v117_1_0.clone(); Documents::method3( Documents::US0::US0_4, @@ -7939,10 +8082,10 @@ mod module_2555ccf7 { Documents::closure29((), ()) }), Func0::new({ - let v258 = v258.clone(); + let v296 = v296.clone(); move || { Documents::closure30( - v258.clone(), + v296.clone(), (), ) } @@ -7950,48 +8093,55 @@ mod module_2555ccf7 { ); ( -1_i32, - Documents::US2::US2_0(v258.clone()), + Documents::US2::US2_0(v296.clone()), Documents::US11::US11_1, ) } }; - let v269: Documents::US11 = patternInput_4.2.clone(); - let v268: Documents::US2 = patternInput_4.1.clone(); - let v267: i32 = patternInput_4.0.clone(); - let v276: Documents::US2 = match &v269 { - Documents::US11::US11_0(v269_0_0) => { - Documents::US2::US2_0( - match &v269 { + let v307: Documents::US11 = patternInput_4.2.clone(); + let v306: Documents::US2 = patternInput_4.1.clone(); + let v305: i32 = patternInput_4.0.clone(); + let v314: Option = map_1( + Func1::new( + move |v_7: std::sync::Arc< + std::sync::Mutex< + std::sync::Arc< + std::sync::mpsc::Receiver< + std::string::String, + >, + >, + >, + >| { + Documents::closure43((), v_7) + }, + ), + match &v307 { + Documents::US11::US11_0(v307_0_0) => { + Some(match &v307 { Documents::US11::US11_0(x) => x.clone(), _ => unreachable!(), - } - .lock() - .unwrap() - .iter() - .collect::>() - .join("\n"), - ) - } - _ => Documents::US2::US2_1, - }; - let v283: Documents::US3 = match &v276 { - Documents::US2::US2_0(v276_0_0) => { - Documents::US3::US3_0( - fable_library_rust::String_::fromString( - match &v276 { - Documents::US2::US2_0(x) => x.clone(), - _ => unreachable!(), - }, - ), - ) - } - _ => Documents::US3::US3_1, - }; - let v290: Documents::US3 = match &v268 { - Documents::US2::US2_0(v268_0_0) => { + }) + } + _ => { + None::< + std::sync::Arc< + std::sync::Mutex< + std::sync::Arc< + std::sync::mpsc::Receiver< + std::string::String, + >, + >, + >, + >, + > + } + }, + ); + let v321: Documents::US3 = match &v306 { + Documents::US2::US2_0(v306_0_0) => { Documents::US3::US3_0( fable_library_rust::String_::fromString( - match &v268 { + match &v306 { Documents::US2::US2_0(x) => x.clone(), _ => unreachable!(), }, @@ -8000,40 +8150,36 @@ mod module_2555ccf7 { } _ => Documents::US3::US3_1, }; - let v294: string = match &v290 { - Documents::US3::US3_0(v290_0_0) => match &v290 { - Documents::US3::US3_0(x) => x.clone(), - _ => unreachable!(), - }, - _ => string(""), - }; - let v297: string = match &v283 { - Documents::US3::US3_0(v283_0_0) => match &v283 { - Documents::US3::US3_0(x) => x.clone(), - _ => unreachable!(), + let v326: string = defaultValue( + match &v321 { + Documents::US3::US3_0(v321_0_0) => match &v321 { + Documents::US3::US3_0(x) => x.clone(), + _ => unreachable!(), + }, + _ => string(""), }, - _ => v294, - }; + v314, + ); Documents::method3( Documents::US0::US0_0, - Func0::new(move || Documents::closure42((), ())), + Func0::new(move || Documents::closure44((), ())), Func0::new({ - let v267 = v267.clone(); - let v297 = v297.clone(); - move || Documents::closure43(v267, v297.clone(), ()) + let v305 = v305.clone(); + let v326 = v326.clone(); + move || Documents::closure45(v305, v326.clone(), ()) }), ); - LrcPtr::new((v267, v297.clone())) + LrcPtr::new((v305, v326.clone())) } } }))(); _v48.set(Some(x_12)) } { - let v302: LrcPtr<(i32, string)> = getValue(_v48.get().clone()); - let v303: LrcPtr<(i32, string)> = - Documents::method47(v302.0.clone(), v302.1.clone()); - v303 + let v331: LrcPtr<(i32, string)> = getValue(_v48.get().clone()); + let v332: LrcPtr<(i32, string)> = + Documents::method50(v331.0.clone(), v331.1.clone()); + v332 } } }); @@ -8041,11 +8187,11 @@ mod module_2555ccf7 { { //; { - let v307: std::pin::Pin< + let v336: std::pin::Pin< Box>>, > = __result; - let v309: LrcPtr<(i32, string)> = futures_lite::future::block_on(v307); - _v7.set(Some((v309.0.clone(), v309.1.clone()))); + let v338: LrcPtr<(i32, string)> = futures_lite::future::block_on(v336); + _v7.set(Some((v338.0.clone(), v338.1.clone()))); { let patternInput_5: (i32, string) = getValue(_v7.get().clone()); (patternInput_5.0.clone(), patternInput_5.1.clone()) @@ -8055,7 +8201,7 @@ mod module_2555ccf7 { } } } - pub fn method51(v0_1: string, v1_1: string, v2: string) -> (string, string) { + pub fn method53(v0_1: string, v1_1: string, v2: string) -> (string, string) { let _v3: MutCell> = MutCell::new(None::); let v5: &str = &*v1_1.clone(); let v7: std::string::String = String::from(v5); @@ -8097,20 +8243,20 @@ mod module_2555ccf7 { ) } } - pub fn closure51(unitVar: (), v0_1: u8) -> string { + pub fn closure53(unitVar: (), v0_1: u8) -> string { let v2: string = string("format!(\"{:02x}\", $0)"); let v3: std::string::String = format!("{:02x}", v0_1); fable_library_rust::String_::fromString(v3) } - pub fn method52() -> string { + pub fn method54() -> string { string("") } - pub fn closure52(unitVar: (), unitVar_1: ()) -> string { + pub fn closure54(unitVar: (), unitVar_1: ()) -> string { let v0_1: string = string("documents.run / par_map / origin_hash |> sm\'.contains local_git_hash |> not / hash2 = None || hash1 <>. (hash2 |> optionm.value)"); v0_1 } - pub fn closure53( + pub fn closure55( v0_1: string, v1_1: string, v2: string, @@ -8128,21 +8274,21 @@ mod module_2555ccf7 { v1_1, v2, v0_1, v4, v3, v7, v6, v9, v10, v5, v8, Documents::closure6((), ())) } - pub fn method53(v0_1: string) -> string { + pub fn method55(v0_1: string) -> string { v0_1 } - pub fn method55(v0_1: i32, v1_1: LrcPtr) -> bool { + pub fn method57(v0_1: i32, v1_1: LrcPtr) -> bool { v1_1.l0.get().clone() < v0_1 } - pub fn method56(v0_1: string) -> string { + pub fn method58(v0_1: string) -> string { v0_1 } - pub fn method57( + pub fn method59( v0_1: std::sync::MutexGuard, ) -> std::sync::MutexGuard { v0_1 } - pub fn closure56( + pub fn closure58( v0_1: string, v1_1: std::sync::Arc>, ) { @@ -8151,25 +8297,25 @@ mod module_2555ccf7 { std::sync::PoisonError>, > = v1_1.lock(); let v5: std::sync::MutexGuard = v3.unwrap(); - let v6: string = Documents::method56(v0_1); + let v6: string = Documents::method58(v0_1); let v8: &[u8] = v6.as_bytes(); - let v9: std::sync::MutexGuard = Documents::method57(v5); + let v9: std::sync::MutexGuard = Documents::method59(v5); let v11: bool = true; let mut v9 = v9; let v13: bool = true; std::io::Write::write_all(&mut *v9, v8).unwrap(); () } - pub fn method58(v0_1: i32, v1_1: LrcPtr) -> bool { + pub fn method60(v0_1: i32, v1_1: LrcPtr) -> bool { v1_1.l0.get().clone() < v0_1 } - pub fn method59(v0_1: string) -> string { + pub fn method61(v0_1: string) -> string { v0_1 } - pub fn closure57(unitVar: (), unitVar_1: ()) -> string { + pub fn closure59(unitVar: (), unitVar_1: ()) -> string { string("documents.hangul") } - pub fn closure58(v0_1: string, v1_1: i32, v2: string, unitVar: ()) -> string { + pub fn closure60(v0_1: string, v1_1: i32, v2: string, unitVar: ()) -> string { sprintf!( "exit_code: {:?} / result_len: {} / output_path: {} / {}", v1_1, @@ -8178,7 +8324,7 @@ mod module_2555ccf7 { Documents::closure6((), ()) ) } - pub fn method54(v0_1: string, v1_1: string, v2: string, v3: string) -> Documents::US19 { + pub fn method56(v0_1: string, v1_1: string, v2: string, v3: string) -> Documents::US19 { let _v4: MutCell> = MutCell::new(None::); let _v5: MutCell>> = MutCell::new(None::>); { @@ -8219,7 +8365,7 @@ mod module_2555ccf7 { l0: MutCell::new(0_i32), l1: MutCell::new(0_i32), }); - while Documents::method55(v38, v40.clone()) { + while Documents::method57(v38, v40.clone()) { let v42: i32 = v40.l0.get().clone(); let v43: i32 = v40.l1.get().clone(); let v44: string = v31[v42].clone(); @@ -8264,7 +8410,7 @@ mod module_2555ccf7 { } })); let v62: string = - sprintf!("{}\n\n", join(Documents::method50(), toArray(v57))); + sprintf!("{}\n\n", join(Documents::method49(), toArray(v57))); let _v68: MutCell> = MutCell::new(None::); { let x_2: bool = cfg!(windows); @@ -8296,7 +8442,7 @@ mod module_2555ccf7 { move |v: std::sync::Arc>| - Documents::closure56(v62.clone(), + Documents::closure58(v62.clone(), v) })), true, @@ -8312,7 +8458,7 @@ mod module_2555ccf7 { l2: MutCell::new(0_i32), l3: MutCell::new(0_i32), }); - while Documents::method58(v38, v93.clone()) { + while Documents::method60(v38, v93.clone()) { let v95: i32 = v93.l0.get().clone(); let matchValue: string = v93.l1.get().clone(); let matchValue_1: i32 = v93.l2.get().clone(); @@ -8362,13 +8508,13 @@ mod module_2555ccf7 { getValue(_v121.get().clone()); Documents::method3( Documents::US0::US0_2, - Func0::new(move || Documents::closure57((), ())), + Func0::new(move || Documents::closure59((), ())), Func0::new({ let v118 = v118.clone(); let v2 = v2.clone(); let v88 = v88.clone(); move || { - Documents::closure58( + Documents::closure60( v2.clone(), v88, v118.clone(), @@ -8386,10 +8532,10 @@ mod module_2555ccf7 { } } } - pub fn closure59(unitVar: (), unitVar_1: ()) -> string { + pub fn closure61(unitVar: (), unitVar_1: ()) -> string { string("documents.files_fn / error") } - pub fn closure60(v0_1: string, v1_1: i32, unitVar: ()) -> string { + pub fn closure62(v0_1: string, v1_1: i32, unitVar: ()) -> string { sprintf!( "exit_code: {:?} / result: {} / {}", v1_1, @@ -8397,7 +8543,7 @@ mod module_2555ccf7 { Documents::closure6((), ()) ) } - pub fn closure55( + pub fn closure57( v0_1: string, v1_1: string, v2: string, @@ -8405,7 +8551,7 @@ mod module_2555ccf7 { v4: string, v5: string, ) -> Documents::US18 { - let patternInput: (string, string) = Documents::method51(v5, v4.clone(), v0_1); + let patternInput: (string, string) = Documents::method53(v5, v4.clone(), v0_1); let v7: string = patternInput.1.clone(); let v6: string = patternInput.0.clone(); let _v8: MutCell> = MutCell::new(None::); @@ -8514,14 +8660,14 @@ mod module_2555ccf7 { { // rust.loop; let v134: &[u8] = &sha2::Digest::finalize(v94); - let v136: Vec = v134.iter().map(|x| *x).collect(); + let v136: Vec = v134.iter().map(|x| *x).collect::>(); fn v138(v: u8) -> string { - Documents::closure51((), v) + Documents::closure53((), v) } let v139: Vec = v136 .into_iter() .map(|x| Func1::from(v138)(x.clone())) - .collect(); + .collect::>(); let v141: Array = fable_library_rust::NativeArray_::array_from(v139); let v142: LrcPtr> = delay(Func0::new({ @@ -8536,7 +8682,7 @@ mod module_2555ccf7 { ) } })); - let v146: string = join(Documents::method52(), toArray(v142)); + let v146: string = join(Documents::method54(), toArray(v142)); let _v147: MutCell> = MutCell::new(None::); let v148: string = Documents::method18(v6.clone()); let v149: string = Documents::method19(); @@ -8621,11 +8767,11 @@ mod module_2555ccf7 { // rust.loop; let v226: &[u8] = &sha2::Digest::finalize(v186); let v228: Vec = - v226.iter().map(|x| *x).collect(); + v226.iter().map(|x| *x).collect::>(); let v230: Vec = v228 .into_iter() .map(|x| Func1::from(v138)(x.clone())) - .collect(); + .collect::>(); let v232: Array = fable_library_rust::NativeArray_::array_from( v230, @@ -8649,7 +8795,7 @@ mod module_2555ccf7 { ) } })); - v146 == join(Documents::method52(), toArray(v233)) + v146 == join(Documents::method54(), toArray(v233)) } } } @@ -8662,7 +8808,7 @@ mod module_2555ccf7 { false }) == false { - let v241: Documents::US19 = Documents::method54(v2, v3, v7.clone(), v4); + let v241: Documents::US19 = Documents::method56(v2, v3, v7.clone(), v4); match &v241 { Documents::US19::US19_0(v241_0_0, v241_0_1) => { let v243: string = v241_0_1.clone(); @@ -8670,11 +8816,11 @@ mod module_2555ccf7 { if v242 != 0_i32 { Documents::method3( Documents::US0::US0_2, - Func0::new(move || Documents::closure59((), ())), + Func0::new(move || Documents::closure61((), ())), Func0::new({ let v242 = v242.clone(); let v243 = v243.clone(); - move || Documents::closure60(v243.clone(), v242, ()) + move || Documents::closure62(v243.clone(), v242, ()) }), ); Documents::US18::US18_0(Err::>( @@ -8695,7 +8841,7 @@ mod module_2555ccf7 { } if getValue(_v251.get().clone()) { let _v272: MutCell> = MutCell::new(None::<()>); - let v273: string = Documents::method53(v6); + let v273: string = Documents::method55(v6); let v275: Result = std::fs::copy(&*v7.clone(), &*v273); let v277: u64 = v275.unwrap(); @@ -8723,7 +8869,7 @@ mod module_2555ccf7 { Documents::US18::US18_1 } } - pub fn closure54( + pub fn closure56( v0_1: string, v1_1: string, v2: string, @@ -8737,7 +8883,7 @@ mod module_2555ccf7 { let v3 = v3.clone(); let v4 = v4.clone(); move |v: string| { - Documents::closure55( + Documents::closure57( v0_1.clone(), v1_1.clone(), v2.clone(), @@ -8748,10 +8894,10 @@ mod module_2555ccf7 { } }) } - pub fn closure63(unitVar: (), unitVar_1: ()) -> string { + pub fn closure65(unitVar: (), unitVar_1: ()) -> string { string("documents.crowbook / result contains ERROR") } - pub fn closure64(v0_1: string, v1_1: string, v2: i32, unitVar: ()) -> string { + pub fn closure66(v0_1: string, v1_1: string, v2: i32, unitVar: ()) -> string { sprintf!( "exit_code: {:?} / output_path: {} / result: {} / {}", v2, @@ -8760,7 +8906,7 @@ mod module_2555ccf7 { Documents::closure6((), ()) ) } - pub fn method60( + pub fn method62( v0_1: bool, v1_1: string, v2: string, @@ -8783,7 +8929,7 @@ mod module_2555ccf7 { string(" rendering.num_depth 6 rendering.highlight.theme \\\"Solarized (dark)\\\"")) } else { if string("pdf") == v4.clone() { - append(append(string("--set tex.paper.size a4paper"), + append(append(string("--set tex.paper.size a4paper tex.template.add \"\\pagenumbering{gobble}\""), (if v0_1 == false @@ -8809,32 +8955,32 @@ mod module_2555ccf7 { true, Some(v3), ); - let v57: string = patternInput.1.clone(); - let v56: i32 = patternInput.0.clone(); - if contains(v57.clone(), string("ERROR")) { + let v59: string = patternInput.1.clone(); + let v58: i32 = patternInput.0.clone(); + if contains(v59.clone(), string("ERROR")) { Documents::method3( Documents::US0::US0_3, - Func0::new(move || Documents::closure63((), ())), + Func0::new(move || Documents::closure65((), ())), Func0::new({ let v1_1 = v1_1.clone(); - let v56 = v56.clone(); - let v57 = v57.clone(); - move || Documents::closure64(v1_1.clone(), v57.clone(), v56, ()) + let v58 = v58.clone(); + let v59 = v59.clone(); + move || Documents::closure66(v1_1.clone(), v59.clone(), v58, ()) }), ); - Documents::US19::US19_1(v56, v57.clone()) + Documents::US19::US19_1(v58, v59.clone()) } else { - Documents::US19::US19_0(v56, v57.clone()) + Documents::US19::US19_0(v58, v59.clone()) } } - pub fn closure62( + pub fn closure64( v0_1: string, v1_1: string, v2: bool, v3: string, v4: string, ) -> Documents::US18 { - let patternInput: (string, string) = Documents::method51(v4.clone(), v3.clone(), v0_1); + let patternInput: (string, string) = Documents::method53(v4.clone(), v3.clone(), v0_1); let v6: string = patternInput.1.clone(); let v5: string = patternInput.0.clone(); let _v7: MutCell> = MutCell::new(None::); @@ -8943,14 +9089,14 @@ mod module_2555ccf7 { { // rust.loop; let v133: &[u8] = &sha2::Digest::finalize(v93); - let v135: Vec = v133.iter().map(|x| *x).collect(); + let v135: Vec = v133.iter().map(|x| *x).collect::>(); fn v137(v: u8) -> string { - Documents::closure51((), v) + Documents::closure53((), v) } let v138: Vec = v135 .into_iter() .map(|x| Func1::from(v137)(x.clone())) - .collect(); + .collect::>(); let v140: Array = fable_library_rust::NativeArray_::array_from(v138); let v141: LrcPtr> = delay(Func0::new({ @@ -8965,7 +9111,7 @@ mod module_2555ccf7 { ) } })); - let v145: string = join(Documents::method52(), toArray(v141)); + let v145: string = join(Documents::method54(), toArray(v141)); let _v146: MutCell> = MutCell::new(None::); let v147: string = Documents::method18(v5.clone()); let v148: string = Documents::method19(); @@ -9050,11 +9196,11 @@ mod module_2555ccf7 { // rust.loop; let v225: &[u8] = &sha2::Digest::finalize(v185); let v227: Vec = - v225.iter().map(|x| *x).collect(); + v225.iter().map(|x| *x).collect::>(); let v229: Vec = v227 .into_iter() .map(|x| Func1::from(v137)(x.clone())) - .collect(); + .collect::>(); let v231: Array = fable_library_rust::NativeArray_::array_from( v229, @@ -9078,7 +9224,7 @@ mod module_2555ccf7 { ) } })); - v145 == join(Documents::method52(), toArray(v232)) + v145 == join(Documents::method54(), toArray(v232)) } } } @@ -9091,7 +9237,7 @@ mod module_2555ccf7 { false }) == false { - let v240: Documents::US19 = Documents::method60(v2, v6.clone(), v3, v1_1, v4); + let v240: Documents::US19 = Documents::method62(v2, v6.clone(), v3, v1_1, v4); match &v240 { Documents::US19::US19_0(v240_0_0, v240_0_1) => { let v242: string = v240_0_1.clone(); @@ -9099,11 +9245,11 @@ mod module_2555ccf7 { if v241 != 0_i32 { Documents::method3( Documents::US0::US0_2, - Func0::new(move || Documents::closure59((), ())), + Func0::new(move || Documents::closure61((), ())), Func0::new({ let v241 = v241.clone(); let v242 = v242.clone(); - move || Documents::closure60(v242.clone(), v241, ()) + move || Documents::closure62(v242.clone(), v241, ()) }), ); Documents::US18::US18_0(Err::>( @@ -9124,7 +9270,7 @@ mod module_2555ccf7 { } if getValue(_v250.get().clone()) { let _v271: MutCell> = MutCell::new(None::<()>); - let v272: string = Documents::method53(v5); + let v272: string = Documents::method55(v5); let v274: Result = std::fs::copy(&*v6.clone(), &*v272); let v276: u64 = v274.unwrap(); @@ -9152,7 +9298,7 @@ mod module_2555ccf7 { Documents::US18::US18_1 } } - pub fn closure61( + pub fn closure63( v0_1: string, v1_1: string, v2: bool, @@ -9163,13 +9309,13 @@ mod module_2555ccf7 { let v1_1 = v1_1.clone(); let v2 = v2.clone(); let v3 = v3.clone(); - move |v: string| Documents::closure62(v0_1.clone(), v1_1.clone(), v2, v3.clone(), v) + move |v: string| Documents::closure64(v0_1.clone(), v1_1.clone(), v2, v3.clone(), v) }) } - pub fn closure65(unitVar: (), unitVar_1: ()) -> string { + pub fn closure67(unitVar: (), unitVar_1: ()) -> string { string("documents.run / par_map / files\' = [] / listm.iter") } - pub fn closure66(v0_1: string, v1_1: string, unitVar: ()) -> string { + pub fn closure68(v0_1: string, v1_1: string, unitVar: ()) -> string { sprintf!( "output_path: {:?} / output_cache_path: {} / {}", v1_1, @@ -9177,7 +9323,7 @@ mod module_2555ccf7 { Documents::closure6((), ()) ) } - pub fn method61( + pub fn method63( v0_1: LrcPtr, v1_1: List>, ) -> List> { @@ -9188,7 +9334,7 @@ mod module_2555ccf7 { Documents::UH2::UH2_1(x, _) => x.clone(), _ => unreachable!(), }, - Documents::method61( + Documents::method63( match v0_1.as_ref() { Documents::UH2::UH2_1(_, x) => x.clone(), _ => unreachable!(), @@ -9198,10 +9344,10 @@ mod module_2555ccf7 { ), } } - pub fn method62(v0_1: i32, v1_1: LrcPtr) -> bool { + pub fn method64(v0_1: i32, v1_1: LrcPtr) -> bool { v1_1.l0.get().clone() < v0_1 } - pub fn method63( + pub fn method65( v0_1: LrcPtr, v1_1: List<( string, @@ -9241,7 +9387,7 @@ mod module_2555ccf7 { } }), ), - Documents::method63( + Documents::method65( match v0_1.as_ref() { Documents::UH3::UH3_1(_, _, _, x) => x.clone(), _ => unreachable!(), @@ -9251,7 +9397,7 @@ mod module_2555ccf7 { ), } } - pub fn closure67( + pub fn closure69( unitVar: (), _arg: ( string, @@ -9268,12 +9414,12 @@ mod module_2555ccf7 { _ => None::>>, } } - pub fn method64( + pub fn method66( v0_1: Vec>>>, ) -> Vec>>> { v0_1 } - pub fn method65( + pub fn method67( v0_1: Vec>>>, ) -> Vec>>> { v0_1 @@ -9603,7 +9749,7 @@ mod module_2555ccf7 { let v262: string = patternInput_4.1.clone(); let v264: string = Documents::method34(Documents::method11(v4.clone(), v207.clone())); - let v267: string = (Documents::method51( + let v267: string = (Documents::method53( string("hangul.md"), v252.clone(), v4.clone(), @@ -9699,14 +9845,14 @@ mod module_2555ccf7 { // rust.loop; let v355: &[u8] = &sha2::Digest::finalize(v315); let v357: Vec = - v355.iter().map(|x| *x).collect(); + v355.iter().map(|x| *x).collect::>(); fn v359(v: u8) -> string { - Documents::closure51((), v) + Documents::closure53((), v) } let v360: Vec = v357 .into_iter() .map(|x| Func1::from(v359)(x.clone())) - .collect(); + .collect::>(); let v362: Array = fable_library_rust::NativeArray_::array_from( v360, @@ -9731,7 +9877,7 @@ mod module_2555ccf7 { } })); let v367: string = - join(Documents::method52(), toArray(v363)); + join(Documents::method54(), toArray(v363)); let _v368: MutCell> = MutCell::new(None::); let v370: &str = &*v264.clone(); @@ -9875,7 +10021,7 @@ mod module_2555ccf7 { let v471: Vec = v469 .iter() .map(|x| *x) - .collect(); + .collect::>(); let v473: Vec = v471.into_iter() .map(|x| { @@ -9885,7 +10031,8 @@ mod module_2555ccf7 { x.clone() ) }) - .collect(); + .collect::>( + ); let v475: Array = fable_library_rust::NativeArray_::array_from(v473); @@ -9913,7 +10060,7 @@ mod module_2555ccf7 { } })); Documents::US3::US3_0(join( - Documents::method52(), + Documents::method54(), toArray(v476), )) } @@ -9950,7 +10097,7 @@ mod module_2555ccf7 { Documents::method3( Documents::US0::US0_2, Func0::new(move || { - Documents::closure52((), ()) + Documents::closure54((), ()) }), Func0::new({ let patternInput_3 = @@ -9967,7 +10114,7 @@ mod module_2555ccf7 { let v367 = v367.clone(); let v483 = v483.clone(); move || { - Documents::closure53( + Documents::closure55( v207.clone(), v238.clone(), v240.clone(), @@ -9988,7 +10135,7 @@ mod module_2555ccf7 { let _v495: MutCell> = MutCell::new(None::<()>); let v496: string = - Documents::method53(v264.clone()); + Documents::method55(v264.clone()); let v498: Result = std::fs::copy( &*v252.clone(), @@ -10033,7 +10180,7 @@ mod module_2555ccf7 { move |v_1: string| - Documents::closure54(v4.clone(), + Documents::closure56(v4.clone(), v3.clone(), v1_1.clone(), v0_1.clone(), @@ -10065,7 +10212,7 @@ mod module_2555ccf7 { move |v_2: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), false, v_2) @@ -10095,7 +10242,7 @@ mod module_2555ccf7 { move |v_3: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), false, v_3) @@ -10125,7 +10272,7 @@ mod module_2555ccf7 { move |v_4: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), false, v_4) @@ -10155,7 +10302,7 @@ mod module_2555ccf7 { move |v_5: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), true, v_5) @@ -10185,7 +10332,7 @@ mod module_2555ccf7 { move |v_6: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), true, v_6) @@ -10215,7 +10362,7 @@ mod module_2555ccf7 { move |v_7: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), true, v_7) @@ -10236,7 +10383,7 @@ mod module_2555ccf7 { LrcPtr::new(Documents::UH2::UH2_0) }; let v958: Array> = toArray_1( - Documents::method61( + Documents::method63( if (if let Documents::UH2::UH2_0 = v526.as_ref() { true } else { @@ -10245,7 +10392,7 @@ mod module_2555ccf7 { { v526 } else { - let patternInput_6: (string, string) = Documents::method51( + let patternInput_6: (string, string) = Documents::method53( string("epub"), v267.clone(), v4.clone(), @@ -10288,13 +10435,13 @@ mod module_2555ccf7 { Documents::method3( Documents::US0::US0_2, Func0::new(move || { - Documents::closure65((), ()) + Documents::closure67((), ()) }), Func0::new({ let v531 = v531.clone(); let v532 = v532.clone(); move || { - Documents::closure66( + Documents::closure68( v531.clone(), v532.clone(), (), @@ -10306,7 +10453,7 @@ mod module_2555ccf7 { let _v580: MutCell> = MutCell::new(None::<()>); let v581: string = - Documents::method53(v532.clone()); + Documents::method55(v532.clone()); let v583: Result = std::fs::copy( &*v531.clone(), @@ -10334,7 +10481,7 @@ mod module_2555ccf7 { let v3 = v3.clone(); let v4 = v4.clone(); move |v_8: string| { - Documents::closure61( + Documents::closure63( v4.clone(), v3.clone(), true, @@ -10354,7 +10501,7 @@ mod module_2555ccf7 { LrcPtr::new(Documents::UH3::UH3_0) }; let patternInput_7: (string, string) = - Documents::method51( + Documents::method53( string("pdf"), v267.clone(), v4.clone(), @@ -10398,13 +10545,13 @@ mod module_2555ccf7 { Documents::method3( Documents::US0::US0_2, Func0::new(move || { - Documents::closure65((), ()) + Documents::closure67((), ()) }), Func0::new({ let v594 = v594.clone(); let v595 = v595.clone(); move || { - Documents::closure66( + Documents::closure68( v594.clone(), v595.clone(), (), @@ -10416,7 +10563,7 @@ mod module_2555ccf7 { let _v642: MutCell> = MutCell::new(None::<()>); let v643: string = - Documents::method53( + Documents::method55( v595.clone(), ); let v645: Result< @@ -10448,7 +10595,7 @@ mod module_2555ccf7 { let v3 = v3.clone(); let v4 = v4.clone(); move |v_9: string| { - Documents::closure61( + Documents::closure63( v4.clone(), v3.clone(), true, @@ -10468,7 +10615,7 @@ mod module_2555ccf7 { v592 }; let patternInput_8: (string, string) = - Documents::method51( + Documents::method53( string("html"), v267.clone(), v4.clone(), @@ -10513,13 +10660,13 @@ mod module_2555ccf7 { Documents::method3( Documents::US0::US0_2, Func0::new(move || { - Documents::closure65((), ()) + Documents::closure67((), ()) }), Func0::new({ let v654 = v654.clone(); let v655 = v655.clone(); move || { - Documents::closure66( + Documents::closure68( v654.clone(), v655.clone(), (), @@ -10531,7 +10678,7 @@ mod module_2555ccf7 { let _v702: MutCell> = MutCell::new(None::<()>); let v703: string = - Documents::method53( + Documents::method55( v655.clone(), ); let v705: Result< @@ -10563,7 +10710,7 @@ mod module_2555ccf7 { let v3 = v3.clone(); let v4 = v4.clone(); move |v_10: string| { - Documents::closure61( + Documents::closure63( v4.clone(), v3.clone(), true, @@ -10583,7 +10730,7 @@ mod module_2555ccf7 { v652 }; let patternInput_9: (string, string) = - Documents::method51( + Documents::method53( string("epub"), v252.clone(), v4.clone(), @@ -10630,7 +10777,7 @@ mod module_2555ccf7 { Documents::method3( Documents::US0::US0_2, Func0::new(move || { - Documents::closure65( + Documents::closure67( (), (), ) @@ -10639,7 +10786,7 @@ mod module_2555ccf7 { let v713 = v713.clone(); let v714 = v714.clone(); move || { - Documents::closure66( + Documents::closure68( v713.clone(), v714.clone(), (), @@ -10654,7 +10801,7 @@ mod module_2555ccf7 { None::<()>, ); let v762: string = - Documents::method53( + Documents::method55( v714.clone(), ); let v764: Result< @@ -10699,7 +10846,7 @@ mod module_2555ccf7 { move |v_11: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), false, v_11) @@ -10711,7 +10858,7 @@ mod module_2555ccf7 { v712 }; let patternInput_10: (string, string) = - Documents::method51( + Documents::method53( string("pdf"), v252.clone(), v4.clone(), @@ -10767,7 +10914,7 @@ mod module_2555ccf7 { Documents::method3( Documents::US0::US0_2, Func0::new(move || { - Documents::closure65( + Documents::closure67( (), (), ) @@ -10778,7 +10925,7 @@ mod module_2555ccf7 { let v773 = v773.clone(); move || { - Documents::closure66(v772.clone(), + Documents::closure68(v772.clone(), v773.clone(), ()) } @@ -10791,7 +10938,7 @@ mod module_2555ccf7 { None::<()>, ); let v821: string = - Documents::method53( + Documents::method55( v773.clone(), ); let v823: Result< @@ -10837,7 +10984,7 @@ mod module_2555ccf7 { move |v_12: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), false, v_12) @@ -10850,7 +10997,7 @@ mod module_2555ccf7 { v771 }; let patternInput_11: (string, string) = - Documents::method51( + Documents::method53( string("html"), v252.clone(), v4.clone(), @@ -10911,7 +11058,7 @@ mod module_2555ccf7 { Documents::method3(Documents::US0::US0_2, Func0::new(move || - Documents::closure65((), + Documents::closure67((), ())), Func0::new({ let v831 @@ -10922,7 +11069,7 @@ mod module_2555ccf7 { v832.clone(); move || - Documents::closure66(v831.clone(), + Documents::closure68(v831.clone(), v832.clone(), ()) })); @@ -10934,7 +11081,7 @@ mod module_2555ccf7 { ); let v880: string = - Documents::method53(v832.clone()); + Documents::method55(v832.clone()); let v882: Result< u64, std::io::Error, @@ -10982,7 +11129,7 @@ mod module_2555ccf7 { move |v_13: string| - Documents::closure61(v4.clone(), + Documents::closure63(v4.clone(), v3.clone(), false, v_13) @@ -10997,7 +11144,7 @@ mod module_2555ccf7 { let patternInput_12: ( string, string, - ) = Documents::method51( + ) = Documents::method53( string("hangul.md"), v252.clone(), v4.clone(), @@ -11054,7 +11201,7 @@ mod module_2555ccf7 { Documents::method3(Documents::US0::US0_2, Func0::new(move || - Documents::closure65((), + Documents::closure67((), ())), Func0::new({ let v890 @@ -11065,7 +11212,7 @@ mod module_2555ccf7 { v891.clone(); move || - Documents::closure66(v890.clone(), + Documents::closure68(v890.clone(), v891.clone(), ()) })); @@ -11075,7 +11222,7 @@ mod module_2555ccf7 { MutCell::new(None::<()>); let v939: string = - Documents::method53(v891.clone()); + Documents::method55(v891.clone()); let v941: Result = @@ -11130,7 +11277,7 @@ mod module_2555ccf7 { move |v_14: string| - Documents::closure54(v4.clone(), + Documents::closure56(v4.clone(), v3.clone(), v1_1.clone(), v0_1.clone(), @@ -11164,11 +11311,11 @@ mod module_2555ccf7 { l0: MutCell::new(0_i32), l1: MutCell::new(v963), }); - while Documents::method62(v966, v967.clone()) { + while Documents::method64(v966, v967.clone()) { let v969: i32 = v967.l0.get().clone(); let v970: Vec>>> = v967.l1.get().clone(); - let v975 = toArray_1(Documents::method63( + let v975 = toArray_1(Documents::method65( v965[v969].clone(), empty::<( string, @@ -11185,16 +11332,16 @@ mod module_2555ccf7 { string, Func1>, )| { - Documents::closure67((), arg10_0040_16) + Documents::closure69((), arg10_0040_16) }, )(x) }); let v985: Vec>>> = - Documents::method64(rayon::iter::ParallelIterator::collect( + Documents::method66(rayon::iter::ParallelIterator::collect( v982, )); let v986: Vec>>> = - Documents::method65(v970); + Documents::method67(v970); let v988: bool = true; let mut v986 = v986; let v990: bool = true; @@ -11221,10 +11368,10 @@ mod module_2555ccf7 { } } } - pub fn closure68(unitVar: (), unitVar_1: ()) -> string { + pub fn closure70(unitVar: (), unitVar_1: ()) -> string { string("documents.run") } - pub fn closure69( + pub fn closure71( v0_1: Vec< Result< LrcPtr<( @@ -11242,7 +11389,7 @@ mod module_2555ccf7 { Documents::closure6((), ()) ) } - pub fn method66( + pub fn method68( v0_1: Result< Vec< Result< @@ -12096,10 +12243,10 @@ mod module_2555ccf7 { > = rayon::iter::ParallelIterator::collect(v554); Documents::method3( Documents::US0::US0_2, - Func0::new(move || Documents::closure68((), ())), + Func0::new(move || Documents::closure70((), ())), Func0::new({ let v556 = v556.clone(); - move || Documents::closure69(v556.clone(), ()) + move || Documents::closure71(v556.clone(), ()) }), ); { @@ -12121,7 +12268,7 @@ mod module_2555ccf7 { >, >, std::string::String, - > = Documents::method66(Ok::< + > = Documents::method68(Ok::< Vec< Result< LrcPtr<( diff --git a/apps/documents/documents.spi b/apps/documents/documents.spi index 611984af..5bdd43f5 100644 --- a/apps/documents/documents.spi +++ b/apps/documents/documents.spi @@ -66,6 +66,8 @@ let crowbook hangul { ext dist_dir dist_path output_path } = | "pdf" => $'$"--set"' +. $'$" tex.paper.size a4paper"' + +. $'$" tex.template.add \\\"\\\\pagenumbering{{gobble}}\\\""' + // +. $'$" tex.template.add \\\"\\\\pagestyle{{empty}}\\\""' +. ( if hangul |> not then ""