(build! cfg)
we route everything through here to simplify storing build results in last-result
we route everything through here to simplify storing build results in last-result
(cfg->build-args {:keys [target release? features bin-args cargo-args rustc-args
cargo-verbose]
:as cfg})
(collect-build spawn-chan)
Sorts spawn output into failed and result, returning a promise-chan yielding nodeback vector:
if error => [{:type :error-type :warnings [{}..] :errors [{}..] :stdout [...] :stderr [...]}] else => [nil {:warnings [{}...] :stdout [<-- your app output--> ] :stderr ['status' 'messages']}]
Sorts spawn output into failed and result, returning a promise-chan yielding nodeback vector: if error => [{:type :error-type :warnings [{}..] :errors [{}..] :stdout [...] :stderr [...]}] else => [nil {:warnings [{}...] :stdout [<-- your app output--> ] :stderr ['status' 'messages']}]
combines a flag with each kw arg as a string. '-A unused_parens ...'
combines a flag with each kw arg as a string. '-A unused_parens ...'
(p->ch promise)
(p->ch promise c)
convert promise to nodeback style [?err ?data] yielding promise-chan
convert promise to nodeback style [?err ?data] yielding promise-chan
(verbose-state cfg)
helper for propagating verbose state across async chains
helper for propagating verbose state across async chains
(wasm-gc-and-slurp cfg)
1. exec wasm-gc to shrink fat wasm file per the config 2. slurp final wasm => pchan<[?err ?buffer]>
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close