This commit is contained in:
vms 2021-03-28 23:22:12 +03:00
parent e4c7ed319b
commit 04c2fb51d7
6 changed files with 15 additions and 11 deletions

View File

@ -15,13 +15,17 @@ jobs:
rustup toolchain install nightly-2021-02-27
rustup default nightly-2021-02-27
rustup override set nightly-2021-02-27
rustup target add wasm32-unknown-unknown
rustup target add wasm32-wasi
rustup component add rustfmt
rustup component add clippy
cargo fmt --all -- --check --color always
cargo build -v --target wasm32-unknown-unknown --all-features
(cd fluence; cargo build -v --target wasm32-wasi --all-features)
(cd fluence; cargo clippy -v --target wasm32-wasi)
(cd fluence-test; cargo build)
cargo test -v --all-features
cargo clippy -v --target wasm32-unknown-unknown
- save_cache:
paths:
- ~/.cargo

View File

@ -23,7 +23,7 @@
//! # Examples
//!
//! This example shows how a function could be exported:
//! ```
//! ```ignore
//! #[fce]
//! pub fn greeting(name: String) -> String {
//! format!("Hi {}", name)
@ -33,7 +33,7 @@
//! This more complex example shows how a function could be imported from another Wasm module
//! and how a struct could be passed:
//!
//! ```
//! ```ignore
//! use fluence::MountedBinaryResult;
//!
//! #[fce]

View File

@ -34,7 +34,7 @@ use fce_test::fce_test_impl;
use proc_macro::TokenStream;
/// This macro allows user to write tests for services in the following form:
///```rust
///```ignore
/// #[fce_test(config = "/path/to/Config.toml")]
/// fn test() {
/// let service_result = fce.call("greeting", "name");
@ -43,7 +43,7 @@ use proc_macro::TokenStream;
///```
///
/// This function is desugrated in the following way:
///```rust
///```ignore
/// #[test]
/// fn test() {
/// let fce = fluence_faas::FluenceFaaS::with_raw_config("/path/to/Config.toml")

View File

@ -28,7 +28,7 @@ pub(crate) struct FnEpilogDescriptor {
/// This trait could be used to generate various parts needed to construct epilog of an export
/// function. They are marked with # in the following example:
/// ```
/// ```ignore
/// quote! {
/// pub unsafe fn foo(...) #fn_return_type {
/// ...

View File

@ -31,7 +31,7 @@ pub(crate) struct FnPrologDescriptor {
/// This trait could be used to generate various parts needed to construct prolog of an export
/// function. They are marked with # in the following example:
/// ```
/// ```ignore
/// quote! {
/// fn foo(#(#raw_arg_names: #raw_arg_types),*) {
/// #prolog

View File

@ -33,7 +33,7 @@ pub(crate) struct ExternDescriptor {
/// This trait could be used to generate various parts needed to construct prolog of an wrapper
/// function or extern block. They are marked with # in the following examples:
/// ```
/// ```ignore
/// quote! {
/// fn foo(#(#arg_names: #arg_types), *) {
/// let arg_1 = std::mem::ManuallyDrop::new(arg_1);
@ -44,7 +44,7 @@ pub(crate) struct ExternDescriptor {
/// }
/// ```
///
/// ```
/// ```ignore
/// quote! {
/// extern "C" {
/// #[link_name = "foo_link_name"]