* Adds an executor for WASM runtimes based on wasm_bindgen. * Add time driver based on JS time handling. * Add example that can run in browser locally. * Update to critical-section version that supports 'std' flag
		
			
				
	
	
		
			26 lines
		
	
	
		
			817 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			817 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html>
 | 
						|
  <head>
 | 
						|
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
 | 
						|
  </head>
 | 
						|
  <body>
 | 
						|
    <!-- Note the usage of `type=module` here as this is an ES6 module -->
 | 
						|
    <script type="module">
 | 
						|
      // Use ES module import syntax to import functionality from the module
 | 
						|
      // that we have compiled.
 | 
						|
      //
 | 
						|
      // Note that the `default` import is an initialization function which
 | 
						|
      // will "boot" the module and make it ready to use. Currently browsers
 | 
						|
      // don't support natively imported WebAssembly as an ES module, but
 | 
						|
      // eventually the manual initialization won't be required!
 | 
						|
      import init from './pkg/embassy_wasm_example.js';
 | 
						|
      await init();
 | 
						|
    </script>
 | 
						|
    <h1>Log</h1>
 | 
						|
    <div>
 | 
						|
        <ul id="log">
 | 
						|
        </ul>
 | 
						|
    </div>
 | 
						|
  </body>
 | 
						|
</html>
 |