Skip to content

Commit

Permalink
fix(doc): Inline documentation of re-exports (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique authored Jul 28, 2023
1 parent 36de35b commit 30bfa73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/interpreter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ pub use instructions::opcode::{self, OpCode, OPCODE_JUMPMAP};
pub use interpreter::*;
pub use interpreter::{BytecodeLocked, Contract, Interpreter, Memory, Stack};

#[doc(inline)]
pub use revm_primitives as primitives;
1 change: 1 addition & 0 deletions crates/precompile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub use primitives::{
precompile::{PrecompileError as Error, *},
Bytes, HashMap,
};
#[doc(inline)]
pub use revm_primitives as primitives;

pub type B160 = [u8; 20];
Expand Down
5 changes: 4 additions & 1 deletion crates/revm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ pub use journaled_state::{JournalEntry, JournaledState};

extern crate alloc;

/// reexport `revm_precompiles`
// reexport `revm_precompiles`
#[doc(inline)]
pub use revm_precompile as precompile;

// reexport `revm_interpreter`
#[doc(inline)]
pub use revm_interpreter as interpreter;

// reexport `revm_primitives`
#[doc(inline)]
pub use revm_interpreter::primitives;

/// Reexport Inspector implementations
Expand Down

0 comments on commit 30bfa73

Please sign in to comment.