blob: bc09e4a6301163253c117fcbdac00c94f0b05a36 [file] [log] [blame]
//! This is a test that we can define items in a `#![no_std]` crate when
//! `wasm-bindgen` is compiled itself with the `std` feature and everything
//! works out just fine.
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
extern "C" {
fn test(a: &str);
type Js;
fn new() -> Js;
#[wasm_bindgen(method, structural)]
fn init(this: &Js);
pub struct A {}
impl A {
pub fn foo(&self) {}
pub fn bar(&mut self) {}