Liking cljdoc? Tell your friends :D

cargo.cargo


*verbose*cljs

source

autobuild!cljs

(autobuild! {:keys [project-name] :as cfg} handler)
source

build!cljs

(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
sourceraw docstring

cancel-autobuild!cljs

(cancel-autobuild! {:keys [project-name] :as cfg})
source

cargo-arg->strcljs

source

cfg->build-argscljs

(cfg->build-args {:keys [target release? features bin-args cargo-args rustc-args
                         cargo-verbose]
                  :as cfg})
source

cfg->rustflagscljs

(cfg->rustflags {:as cfg})
source

clean-projectcljs

(clean-project {:keys [project-name] :as cfg})
source

collect-buildcljs

(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']}]
sourceraw docstring

config-wasm-pathscljs

(config-wasm-paths {:keys [release?] :as cfg})
source

dot-wasm-filecljs

(dot-wasm-file {:keys [project-name] :as cfg})
source

flagged-kw-argscljs

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 ...'
sourceraw docstring

init-modulecljs

(init-module array-buffer)
(init-module array-buffer importOptions)
source

last-resultcljs

source

p->chcljs

(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
sourceraw docstring

pathcljs

source

project-pathcljs

(project-path {:keys [project-name dir] :as cfg})
source

spawn-cargocljs

(spawn-cargo cmd {:keys [project-name silent?] :as cfg})
source

src-pathcljs

(src-path {:keys [project-name] :as cfg})
source

target->argcljs

(target->arg target)
source

verbose-statecljs

(verbose-state cfg)

helper for propagating verbose state across async chains

helper for propagating verbose state across async chains
sourceraw docstring

wasm-debug-dircljs

(wasm-debug-dir {:keys [project-name] :as cfg})
source

wasm-debug-pathcljs

(wasm-debug-path {:keys [project-name] :as cfg})
source

wasm-gccljs

(wasm-gc {:keys [project-name release? build-dir] :as cfg})
source

wasm-gc-and-slurpcljs

(wasm-gc-and-slurp cfg)
  1. exec wasm-gc to shrink fat wasm file per the config
  2. slurp final wasm => pchan<[?err ?buffer]>
1. exec wasm-gc to shrink fat wasm file per the config
2. slurp final wasm
=> pchan<[?err ?buffer]>
sourceraw docstring

wasm-release-dircljs

(wasm-release-dir {:keys [project-name] :as cfg})
source

wasm-release-pathcljs

(wasm-release-path {:keys [project-name] :as cfg})
source

watch-projectcljs

(watch-project {:keys [project-name] :as cfg})
source

watcherscljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close