Struct wasm_bindgen_test_project_builder::Project[][src]

pub struct Project { /* fields omitted */ }

Methods

impl Project
[src]

Add a new file with the specified contents to this project, the name can have slahes for files in subdirectories.

Enable debug mode in wasm-bindgen for this test

Depend on wasm-bindgen without the std feature enabled.

Depend on the serde feature of wasm-bindgen

Generate an rlib instead of a cdylib in the generated Cargo project

Depend on a crate from crates.io, like serde.

Enables or disables node.js experimental modules output

Enables or disables the usage of webpack for this project

Add a path dependency to the generated project

Returns the crate name that will be used for the generated crate, this name changes between test runs and is generated at runtime.

Flag this project as requiring bigint support in Node

This test requires a headless web browser

Write this project to the filesystem, ensuring all files are ready to go.

Build the Cargo project for the wasm target, returning the root of the project and the target directory where output is located.

Generate wasm-bindgen bindings for the compiled artifacts of this project, returning the root of the project as well as the target directory where output was generated.

Execute this project's run.js, ensuring that everything runs through node or a browser correctly

Reads JS generated by wasm-bindgen to a string.

Trait Implementations

impl Clone for Project
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Project

impl Sync for Project