Merge pull request #751 from wasmerio/feature/better-docs

Improved docs with custom logo and favicon
This commit is contained in:
Syrus Akbary 2019-09-03 17:09:23 -07:00 committed by GitHub
commit f68ad7f655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 44 additions and 9 deletions

View File

@ -7,6 +7,9 @@
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")]
mod cache;
mod code;
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 stdio;

View File

@ -7,6 +7,9 @@
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")]
#[macro_use]
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;
use service::{ImportInfo, LoadProfile, RunProfile, ServiceContext, TableEntryRequest};

View File

@ -1,5 +1,7 @@
#![cfg(all(target_arch = "wasm32", target_os = "wasi"))]
#![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::fs::File;

View File

@ -8,6 +8,8 @@
)]
#![cfg_attr(not(target_os = "windows"), deny(dead_code))]
#![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 code;

View File

@ -148,5 +148,4 @@ mod tests {
// 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.
}
}

View File

@ -7,5 +7,8 @@
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")]
pub mod call_trace;
pub mod metering;

View File

@ -1,4 +1,8 @@
#![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"))]
#[macro_use]
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 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")
.compile("image-loading");
} else {
}
}

View File

@ -8,6 +8,8 @@
unreachable_patterns
)]
#![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)]
#[macro_use]

View File

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

View File

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

View File

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

View File

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

View File

@ -7,6 +7,9 @@
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")]
//! Wasmer-runtime is a library that makes embedding WebAssembly
//! in your application easy, efficient, and safe.
//!

View File

@ -1318,7 +1318,8 @@ impl X64FunctionCode {
}
m.state
.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);

View File

@ -8,6 +8,8 @@
unreachable_patterns
)]
#![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(
all(target_os = "macos", target_arch = "x86_64"),

View File

@ -502,5 +502,4 @@ mod test {
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
}
}
}

View File

@ -7,6 +7,9 @@
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(target = "windows")]
extern crate winapi;

View File

@ -7,6 +7,9 @@
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(windows)]
mod exception_handling;

View File

@ -7,6 +7,9 @@
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")]
#[macro_use]
extern crate wasmer_runtime_core;
// extern crate wasmer_emscripten;