Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
40762b6
Refactor rebase master prometheus_v0.3
nodebreaker0-0 Nov 28, 2019
472aca1
Milestone1: Final Version of v0.3
nodebreaker0-0 Dec 10, 2019
1974f94
no-std or warm compatibility issues, grapana-data -source code refere…
nodebreaker0-0 Jan 2, 2020
62a873d
Cargo.lock paritytech/master rebase
nodebreaker0-0 Jan 2, 2020
97e37e4
prometheus networking.rs del, grafana-data-source networking.rs pub e…
nodebreaker0-0 Jan 3, 2020
f3e444e
chore: reflect various feedback
nodebreaker0-0 Jan 10, 2020
8145df7
Spaces to tabs.
gavofyork Jan 6, 2020
fca71be
Replace grafana and tidy
expenses Jan 10, 2020
855ceed
Add generics
expenses Jan 10, 2020
70c6bcc
Add photo back
expenses Jan 10, 2020
5941041
Re-fix spaces in primitives/consensus/babe/src/inherents.rs
expenses Jan 10, 2020
c93a0a3
custom weight function wrapper (#4158)
kianenigma Jan 14, 2020
b443dda
Take `genesis_storage` by ref (#4617)
bkchr Jan 14, 2020
012c5ef
Add trivial EnsureFounder verifier to society (#4615)
gavofyork Jan 14, 2020
410ce11
Update the service to std futures (#4447)
expenses Jan 14, 2020
45995b4
fixed panic on empty remote read request (#4619)
svyatonik Jan 14, 2020
8cb71bd
Add `pallet-society` and `pallet-recovery` to substrate node (#4622)
bkchr Jan 14, 2020
37be263
Make offchain worker calls more future proof. (#4618)
tomusdrw Jan 14, 2020
05ce617
network: add logging for extra requests (#4625)
andresilva Jan 15, 2020
5649259
Add more logging to the network (#4621)
tomaka Jan 15, 2020
33b3c23
Return early when fees/balances/values are zero (#4628)
shawntabrizi Jan 15, 2020
c2b0c0f
reset a couple of versions down from v2.0 (#4572)
rphmeier Jan 15, 2020
af1bc8c
fix some discrepancies in generic-asset (#4221)
kigawas Jan 15, 2020
1dafa60
Make Proposer instantiation potentially async. (#4630)
rphmeier Jan 15, 2020
f21eb1a
remove old test (#4637)
gui1117 Jan 16, 2020
4c4ee3d
use default in-memory for commands that don't use keystore (#4634)
NikVolf Jan 16, 2020
3fa5f09
Getting configuration from commands (#4643)
cecton Jan 16, 2020
47c36e6
Rename basic-authority to basic-authorship (#4640)
tomusdrw Jan 16, 2020
879e28a
Implement runtime version checks in `set_code` (#4548)
bkchr Jan 16, 2020
99430a5
grandpa: generic voting rule for backing off from best block (#4635)
andresilva Jan 16, 2020
1e0c679
Make the sync_cycle_from_offline_to_syncing_to_offline test non flaky…
tomaka Jan 16, 2020
f931588
Merge remote-tracking branch 'nodebreaker/prometheus_v0.3' into ashle…
expenses Jan 16, 2020
5796c85
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses Jan 16, 2020
8e98643
Allow updating configuration of changes tries (#3201)
svyatonik Jan 16, 2020
2a45de8
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses Jan 16, 2020
6a7137f
remove unused safe-mix dependency (#4656)
xlc Jan 17, 2020
394bcf4
Add typedefs for storage types (#4654)
stanislav-tkach Jan 17, 2020
7248ac2
add debug logs (#4657)
NikVolf Jan 17, 2020
188d59e
CODEOWNERS: Add myself to pow and EVM module (#4653)
sorpaas Jan 17, 2020
8bae73b
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses Jan 17, 2020
d4fbb89
client/finality-grandpa: Reintegrate periodic neighbor packet worker …
mxinden Jan 17, 2020
2d15616
grandpa: bump finality-grandpa crate to v0.10.3 (#4659)
andresilva Jan 17, 2020
10bebed
add missing bits (#4660)
NikVolf Jan 17, 2020
083ada5
Patch practical usability issues with Society (#4651)
shawntabrizi Jan 17, 2020
36a6de0
Expose proof generation and verifying api. (#4646)
montekki Jan 17, 2020
1caa0f1
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses Jan 17, 2020
ffb4746
Tidy
expenses Jan 17, 2020
e581e3c
Drive by fix of doc of `Value`. (#4658)
pepyakin Jan 17, 2020
f0c1852
client/finality-grandpa: Reintegrate gossip validator report stream (…
mxinden Jan 17, 2020
8a6e3c5
Use local registry
expenses Jan 17, 2020
8de5340
Society: Ensure all votes are removed after tally (#4666)
shawntabrizi Jan 17, 2020
0097939
make compute_fee public (#4669)
xlc Jan 18, 2020
a31ad6e
`sp-runtime-interface` add table about FFI types (#4668)
bkchr Jan 18, 2020
8131288
Add rules and unfounding to society. (#4671)
gavofyork Jan 18, 2020
6cf45f2
Make use of `cfg(doc)` in `sp-runtime-interface` (#4673)
bkchr Jan 19, 2020
3d1634b
Merge remote-tracking branch 'nodebreaker/prometheus_v0.3' into ashle…
expenses Jan 20, 2020
55ac4f8
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses Jan 20, 2020
3cfe43c
endpoint -> exporter
expenses Jan 20, 2020
0af2369
fix readme
expenses Jan 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make use of cfg(doc) in sp-runtime-interface (paritytech#4673)
By using `cfg(doc)`, we can generate docs for modules which are only
available from `no_std`. This drastically improves the documentation for
the developers.
  • Loading branch information
bkchr authored and shawntabrizi committed Jan 19, 2020
commit 6cf45f26e4b3fdcf04eca2c6736cf194fff85dfc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
//! functions will prepare the parameters for the FFI boundary, call the external host function
//! exported into wasm and convert back the result.
//!
//! [`generate`](bare_function_interface::generate) is the entry point for generating for each
//! [`generate`] is the entry point for generating for each
//! trait method one bare function.
//!
//! [`function_for_method`](bare_function_interface::function_for_method) generates the bare
//! [`function_for_method`] generates the bare
//! function per trait method. Each bare function contains both implementations. The implementations
//! are feature-gated, so that one is compiled for the native and the other for the wasm side.

Expand Down
3 changes: 3 additions & 0 deletions primitives/runtime-interface/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ pub trait IntoPreallocatedFFIValue: RIType {
}

/// Something that can be created from a ffi value.
/// Implementations are safe to assume that the `arg` given to `from_ffi_value`
/// is only generated by the corresponding [`wasm::IntoFFIValue`](crate::wasm::IntoFFIValue)
/// implementation.
pub trait FromFFIValue: RIType {
/// As `Self` can be an unsized type, it needs to be represented by a sized type at the host.
/// This `SelfInstance` is the sized type.
Expand Down
10 changes: 5 additions & 5 deletions primitives/runtime-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
//! # Using a type in a runtime interface
//!
//! Any type that should be used in a runtime interface as argument or return value needs to
//! implement [`RIType`]. The associated type `FFIType` is the type that is used in the FFI
//! function to represent the actual type. For example `[T]` is represented by an `u64`. The slice
//! pointer and the length will be mapped to an `u64` value. For more information, see the
//! implementation of [`RIType`] for `T`. The FFI function definition is used when calling from
//! implement [`RIType`]. The associated type [`FFIType`](RIType::FFIType) is the type that is used
//! in the FFI function to represent the actual type. For example `[T]` is represented by an `u64`.
//! The slice pointer and the length will be mapped to an `u64` value. For more information see
//! this [table](#ffi-type-and-conversion). The FFI function definition is used when calling from
//! the wasm runtime into the node.
//!
//! Traits are used to convert from a type to the corresponding [`RIType::FFIType`].
Expand Down Expand Up @@ -265,7 +265,7 @@ pub use codec;
pub(crate) mod impls;
#[cfg(feature = "std")]
pub mod host;
#[cfg(not(feature = "std"))]
#[cfg(any(not(feature = "std"), doc))]
pub mod wasm;
pub mod pass_by;

Expand Down
3 changes: 2 additions & 1 deletion primitives/runtime-interface/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ use sp_std::cell::Cell;
///
/// It is unsafe behavior to call `Something::into_ffi_value().get()` and take this as input for
/// `from_ffi_value`. Implementations are safe to assume that the `arg` given to `from_ffi_value`
/// is only generated by the corresponding `host::IntoFFIValue` implementation.
/// is only generated by the corresponding [`host::IntoFFIValue`](crate::host::IntoFFIValue)
/// implementation.
pub trait FromFFIValue: Sized + RIType {
/// Create `Self` from the given ffi value.
fn from_ffi_value(arg: Self::FFIType) -> Self;
Expand Down