Improved docs with custom logo and favicon

This commit is contained in:
Syrus 2019-09-03 17:06:31 -07:00
parent 1a35cdd4cd
commit d8471e2b6a
24 changed files with 44 additions and 9 deletions

View File

@ -7,6 +7,9 @@
unused_unsafe, unused_unsafe,
unreachable_patterns unreachable_patterns
)] )]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
mod cache; mod cache;
mod code; mod code;
mod libcalls; mod libcalls;

View File

@ -1,2 +1,5 @@
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
pub mod file_descriptor; pub mod file_descriptor;
pub mod stdio; pub mod stdio;

View File

@ -7,6 +7,9 @@
unused_unsafe, unused_unsafe,
unreachable_patterns unreachable_patterns
)] )]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
#[macro_use] #[macro_use]
extern crate wasmer_runtime_core; extern crate wasmer_runtime_core;

View File

@ -1,3 +1,6 @@
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
pub mod service; pub mod service;
use service::{ImportInfo, LoadProfile, RunProfile, ServiceContext, TableEntryRequest}; use service::{ImportInfo, LoadProfile, RunProfile, ServiceContext, TableEntryRequest};

View File

@ -1,5 +1,7 @@
#![cfg(all(target_arch = "wasm32", target_os = "wasi"))] #![cfg(all(target_arch = "wasm32", target_os = "wasi"))]
#![feature(wasi_ext)] #![feature(wasi_ext)]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
use std::cell::RefCell; use std::cell::RefCell;
use std::fs::File; use std::fs::File;

View File

@ -8,6 +8,8 @@
)] )]
#![cfg_attr(not(target_os = "windows"), deny(dead_code))] #![cfg_attr(not(target_os = "windows"), deny(dead_code))]
#![cfg_attr(nightly, feature(unwind_attributes))] #![cfg_attr(nightly, feature(unwind_attributes))]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
mod backend; mod backend;
mod code; mod code;

View File

@ -148,5 +148,4 @@ mod tests {
// verify it used the correct number of points // verify it used the correct number of points
assert_eq!(get_points_used(&instance), 109); // Used points will be slightly more than `limit` because of the way we do gas checking. assert_eq!(get_points_used(&instance), 109); // Used points will be slightly more than `limit` because of the way we do gas checking.
} }
} }

View File

@ -7,5 +7,8 @@
unused_unsafe, unused_unsafe,
unreachable_patterns unreachable_patterns
)] )]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
pub mod call_trace; pub mod call_trace;
pub mod metering; pub mod metering;

View File

@ -1,4 +1,8 @@
#![deny(dead_code, unused_imports, unused_variables, unused_unsafe, unreachable_patterns)] #![deny(dead_code, unused_imports, unused_variables, unused_unsafe, unreachable_patterns)]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
#[cfg(not(target_os = "windows"))] #[cfg(not(target_os = "windows"))]
#[macro_use] #[macro_use]
extern crate failure; extern crate failure;

View File

@ -1,3 +1,6 @@
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
//! # Wasmer Runtime C API //! # Wasmer Runtime C API
//! //!
//! Wasmer is a standalone JIT WebAssembly runtime, aiming to be fully //! Wasmer is a standalone JIT WebAssembly runtime, aiming to be fully

View File

@ -38,6 +38,5 @@ fn main() {
.file("image-loading-macos-x86-64.s") .file("image-loading-macos-x86-64.s")
.compile("image-loading"); .compile("image-loading");
} else { } else {
} }
} }

View File

@ -8,6 +8,8 @@
unreachable_patterns unreachable_patterns
)] )]
#![cfg_attr(nightly, feature(unwind_attributes))] #![cfg_attr(nightly, feature(unwind_attributes))]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
#[cfg(test)] #[cfg(test)]
#[macro_use] #[macro_use]

View File

@ -363,5 +363,4 @@ mod memory_tests {
"Max number of pages is required for shared memory" "Max number of pages is required for shared memory"
) )
} }
} }

View File

@ -165,5 +165,4 @@ mod table_tests {
.unwrap(); .unwrap();
assert_eq!(table.size(), 10); assert_eq!(table.size(), 10);
} }
} }

View File

@ -590,5 +590,4 @@ mod tests {
f64::from_native(f64::from_binary((yf64).to_native().to_binary())) f64::from_native(f64::from_binary((yf64).to_native().to_binary()))
); );
} }
} }

View File

@ -173,5 +173,4 @@ mod tests {
// verify it works // verify it works
assert_eq!(value, 43); assert_eq!(value, 43);
} }
} }

View File

@ -7,6 +7,9 @@
unused_unsafe, unused_unsafe,
unreachable_patterns unreachable_patterns
)] )]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
//! Wasmer-runtime is a library that makes embedding WebAssembly //! Wasmer-runtime is a library that makes embedding WebAssembly
//! in your application easy, efficient, and safe. //! in your application easy, efficient, and safe.
//! //!

View File

@ -1318,7 +1318,8 @@ impl X64FunctionCode {
} }
m.state m.state
.stack_values .stack_values
.push(MachineValue::CopyStackBPRelative(offset)); // TODO: Read value at this offset .push(MachineValue::CopyStackBPRelative(offset));
// TODO: Read value at this offset
} }
_ => { _ => {
m.state.stack_values.push(MachineValue::Undefined); m.state.stack_values.push(MachineValue::Undefined);

View File

@ -8,6 +8,8 @@
unreachable_patterns unreachable_patterns
)] )]
#![feature(proc_macro_hygiene)] #![feature(proc_macro_hygiene)]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
#[cfg(not(any( #[cfg(not(any(
all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "x86_64"),

View File

@ -502,5 +502,4 @@ mod test {
machine.release_locations_keep_state(&mut assembler, &locs); machine.release_locations_keep_state(&mut assembler, &locs);
} }
} }

View File

@ -1265,5 +1265,4 @@ mod tests {
self.to_bits() == 0x7FF8_0000_0000_0000 || self.to_bits() == 0xFFF8_0000_0000_0000 self.to_bits() == 0x7FF8_0000_0000_0000 || self.to_bits() == 0xFFF8_0000_0000_0000
} }
} }
} }

View File

@ -7,6 +7,9 @@
unused_unsafe, unused_unsafe,
unreachable_patterns unreachable_patterns
)] )]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
#[cfg(target = "windows")] #[cfg(target = "windows")]
extern crate winapi; extern crate winapi;

View File

@ -7,6 +7,9 @@
unused_unsafe, unused_unsafe,
unreachable_patterns unreachable_patterns
)] )]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
#[cfg(windows)] #[cfg(windows)]
mod exception_handling; mod exception_handling;

View File

@ -7,6 +7,9 @@
unused_unsafe, unused_unsafe,
unreachable_patterns unreachable_patterns
)] )]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
#[macro_use] #[macro_use]
extern crate wasmer_runtime_core; extern crate wasmer_runtime_core;
// extern crate wasmer_emscripten; // extern crate wasmer_emscripten;