(build-wasm cfg)
Builds a wasm project but with the extra steps of exec'ing wasm-gc on the build artifact and returning it as an uninstantiated buffer
Builds a wasm project but with the extra steps of exec'ing wasm-gc on the build artifact and returning it as an uninstantiated buffer + Compiler warnings may still be present in a successful result => pchan<[?err ?{:buffer js/Buffer, ...}]>
(build-wasm-local cfg)
(build-wasm-local cfg importOptions)
Build and instantiate modules local to the build nodejs process.
Build and instantiate modules local to the build nodejs process. + Compiler warnings may still be present in a successful result => pchan<[?err ?instantiated-module]>
(cargo-build cfg)
Builds the artifact described by the config
Builds the artifact described by the config + Compiler warnings may still be present in a successful result => pchan<[?err ?ok]>
(cargo-run cfg)
Builds and then runs src/bin/main.rs or main.rs.
Builds and then runs src/bin/main.rs or main.rs. + Not applicable to wasm targets + Compiler warnings may still be present in a successful result + If your process emits json it will automatically be converted to edn under the ok's :stdout key => pchan<[?err ?ok]>
(cargo-test cfg)
Run cargo's built-in test runner.
$cargo test
leaves alot to be desired:
Run cargo's built-in test runner. + `$cargo test` leaves alot to be desired: - It suppresses output during builds - it obscures logging during tests (supposedly theres a --nocapture flag but cant get it to work) - there is no structured (json) test result output. + Compiler warnings may still be present in a successful result => pchan<[?err ?ok]>
(clean-project cfg)
delete compiled artifacts
delete compiled artifacts
(get-stdout)
should be stdout emitted from your app on last run/test
should be stdout emitted from your app on last run/test
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close