Skip to content

Commit cf3f7e4

Browse files
authored
Merge pull request #1242 from o1-labs/volhovm/fix-cargo-docs-broken-links
Fix broken links for cargo doc
2 parents f5200db + 5063697 commit cf3f7e4

File tree

8 files changed

+44
-44
lines changed

8 files changed

+44
-44
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ DOCKER_ORG ?= openmina
99
# PostgreSQL configuration for archive node
1010
OPEN_ARCHIVE_ADDRESS ?= http://localhost:3007
1111
PG_USER ?= openmina
12-
PG_PW ?= openminaopenmina
13-
PG_DB ?= openmina_archive
12+
PG_PW ?= openminaopenmina
13+
PG_DB ?= openmina_archive
1414
PG_HOST ?= localhost
1515
PG_PORT ?= 5432
1616

@@ -345,7 +345,7 @@ docs-rust: ## Generate Rust API documentation
345345
@echo "Generating Rust API documentation..."
346346
# Using nightly with --enable-index-page to generate workspace index
347347
# See: https://github.com/rust-lang/cargo/issues/8229
348-
@DATABASE_URL="sqlite::memory:" RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --no-deps --document-private-items --workspace --exclude heartbeats-processor --lib --bins
348+
@DATABASE_URL="sqlite::memory:" RUSTDOCFLAGS="--enable-index-page -Zunstable-options -D warnings" cargo +nightly doc --no-deps --document-private-items --workspace --exclude heartbeats-processor --lib --bins
349349
@echo "Rust documentation generated in target/doc/"
350350
@echo "Entry point: target/doc/index.html"
351351

ledger/src/base.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub trait BaseLedger {
6969
where
7070
F: FnMut(B, &Account) -> B;
7171

72-
/// the set of [account_id]s are ledger elements to skip during the fold,
72+
/// the set of `account_id`s are ledger elements to skip during the fold,
7373
/// because they're in a mask
7474
fn fold_with_ignored_accounts<B, F>(&self, ignoreds: HashSet<AccountId>, init: B, fun: F) -> B
7575
where
@@ -103,15 +103,15 @@ pub trait BaseLedger {
103103
account: Account,
104104
) -> Result<GetOrCreated, DatabaseError>;
105105

106-
/// the ledger should not be used after calling [close]
106+
/// the ledger should not be used after calling `close`
107107
fn close(&self);
108108

109109
/// for account locations in the ledger, the last (rightmost) filled location
110110
fn last_filled(&self) -> Option<Address>;
111111

112112
fn get_uuid(&self) -> Uuid;
113113

114-
/// return Some [directory] for ledgers that use a file system, else None
114+
/// return Some `directory` for ledgers that use a file system, else None
115115
fn get_directory(&self) -> Option<PathBuf>;
116116

117117
fn get(&self, addr: Address) -> Option<Box<Account>>;

ledger/src/generators/zkapp_command_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ pub fn get_transaction_commitments(
2121
(txn_commitment, full_txn_commitment)
2222
}
2323

24-
/// replace dummy signatures, proofs with valid ones for fee payer, other zkapp_command
25-
/// [keymap] maps compressed public keys to private keys
24+
/// Replace dummy signatures, proofs with valid ones for fee payer, other zkapp_command
25+
/// `keymap` maps compressed public keys to private keys
2626
///
2727
/// <https://github.com/MinaProtocol/mina/blob/f7f6700332bdfca77d9f3303e9cf3bc25f997e09/src/lib/zkapp_command_builder/zkapp_command_builder.ml#L94>
2828
pub fn replace_authorizations(

ledger/src/scan_state/fee_excess.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
//! excesses can be represented by excesses in (at most) 2 tokens.
1717
//! Consider, for example, any consecutive subsequence of the transactions
1818
//!
19-
//! ..[txn@2][ft@2][txn@3][txn@3][ft@3][txn@4][ft@4][txn@5][txn@5][ft@5][txn@6][ft@6]..
19+
//! `..[txn@2][ft@2][txn@3][txn@3][ft@3][txn@4][ft@4][txn@5][txn@5][ft@5][txn@6][ft@6]..`
2020
//!
21-
//! where [txn@i] and [ft@i] are transactions and fee transfers respectively
21+
//! where `[txn@i]` and `[ft@i]` are transactions and fee transfers respectively
2222
//! paid in token i.
2323
//! The only groups which may have non-zero fee excesses are those which
2424
//! contain the start and end of the subsequence.
2525
//!
26-
//! The code below also defines a canonical representation where fewer than 2
27-
//! tokens have non-zero excesses. See [rebalance] below for details and the
28-
//! implementation.
26+
//! The code below also defines a canonical representation where fewer
27+
//! than 2 tokens have non-zero excesses. See the internal function
28+
//! `FeeExcess::rebalance` below for details and the implementation.
2929
//!
3030
//!
3131
//! Port of the implementation from:

ledger/src/scan_state/transaction_logic.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ impl Memo {
626626
}
627627

628628
pub fn hash(&self) -> Fp {
629-
use ::poseidon::hash::{hash_with_kimchi, legacy};
629+
use poseidon::hash::{hash_with_kimchi, legacy};
630630

631631
// For some reason we are mixing legacy inputs and "new" hashing
632632
let mut inputs = legacy::Inputs::new();
@@ -5683,7 +5683,7 @@ where
56835683

56845684
/// apply zkapp command fee payer's while stubbing out the second pass ledger
56855685
/// CAUTION: If you use the intermediate local states, you MUST update the
5686-
/// [will_succeed] field to [false] if the [status] is [Failed].*)
5686+
/// [`LocalStateEnv::will_succeed`] field to `false` if the `status` is [`TransactionStatus::Failed`].*)
56875687
pub fn apply_zkapp_command_first_pass_aux<A, F, L>(
56885688
constraint_constants: &ConstraintConstants,
56895689
global_slot: Slot,
@@ -6313,14 +6313,14 @@ impl FailureCollection {
63136313
}
63146314

63156315
/// Structure of the failure status:
6316-
/// I. No fee transfer and coinbase transfer fails: [[failure]]
6316+
/// I. No fee transfer and coinbase transfer fails: `[[failure]]`
63176317
/// II. With fee transfer-
63186318
/// Both fee transfer and coinbase fails:
6319-
/// [[failure-of-fee-transfer]; [failure-of-coinbase]]
6319+
/// `[[failure-of-fee-transfer]; [failure-of-coinbase]]`
63206320
/// Fee transfer succeeds and coinbase fails:
6321-
/// [[];[failure-of-coinbase]]
6321+
/// `[[];[failure-of-coinbase]]`
63226322
/// Fee transfer fails and coinbase succeeds:
6323-
/// [[failure-of-fee-transfer];[]]
6323+
/// `[[failure-of-fee-transfer];[]]`
63246324
///
63256325
/// <https://github.com/MinaProtocol/mina/blob/2ee6e004ba8c6a0541056076aab22ea162f7eb3a/src/lib/transaction_logic/mina_transaction_logic.ml#L2022>
63266326
fn apply_coinbase<L>(
@@ -7548,7 +7548,7 @@ pub fn cons_signed_command_payload(
75487548
) -> ReceiptChainHash {
75497549
// Note: Not sure why they use the legacy way of hashing here
75507550

7551-
use ::poseidon::hash::legacy;
7551+
use poseidon::hash::legacy;
75527552

75537553
let ReceiptChainHash(last_receipt_chain_hash) = last_receipt_chain_hash;
75547554
let union = TransactionUnionPayload::of_user_command_payload(command_payload);
@@ -7569,7 +7569,7 @@ pub fn checked_cons_signed_command_payload(
75697569
use crate::proofs::transaction::{
75707570
legacy_input::CheckedLegacyInput, transaction_snark::checked_legacy_hash,
75717571
};
7572-
use ::poseidon::hash::legacy;
7572+
use poseidon::hash::legacy;
75737573

75747574
let mut inputs = payload.to_checked_legacy_input_owned(w);
75757575
inputs.append_field(last_receipt_chain_hash.0);

node/src/ledger/ledger_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ impl LedgerSyncState {
14111411
.ok_or_else(|| format!("Missing sync snarked ledger {}", hash))
14121412
}
14131413

1414-
/// Returns a [Mask] instance for the snarked ledger with [hash]. If it doesn't
1414+
/// Returns a [Mask] instance for the snarked ledger with `hash`. If it doesn't
14151415
/// exist a new instance is created.
14161416
fn snarked_ledger_mut(&mut self, hash: LedgerHash) -> Result<&mut Mask, InvalidBigInt> {
14171417
let hash_fp = hash.to_field()?;

p2p/src/p2p_state.rs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -515,64 +515,64 @@ type OptionalCallback<T> = Option<Callback<T>>;
515515

516516
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
517517
pub struct P2pCallbacks {
518-
/// Callback for [`P2pChannelsTransactionAction::Received`]
518+
/// Callback for [`crate::channels::transaction::P2pChannelsTransactionAction::Received`]
519519
pub on_p2p_channels_transaction_received: OptionalCallback<(PeerId, Box<TransactionInfo>)>,
520-
/// Callback for [`P2pChannelsTransactionAction::Libp2pReceived`]
520+
/// Callback for [`crate::channels::transaction::P2pChannelsTransactionAction::Libp2pReceived`]
521521
pub on_p2p_channels_transactions_libp2p_received: OptionalCallback<(
522522
PeerId,
523523
Vec<TransactionWithHash>,
524524
P2pNetworkPubsubMessageCacheId,
525525
)>,
526-
/// Callback for [`P2pChannelsSnarkJobCommitmentAction::Received`]
526+
/// Callback for [`crate::channels::snark_job_commitment::P2pChannelsSnarkJobCommitmentAction::Received`]
527527
pub on_p2p_channels_snark_job_commitment_received:
528528
OptionalCallback<(PeerId, Box<SnarkJobCommitment>)>,
529529

530-
/// Callback for [`P2pChannelsSnarkAction::Received`]
530+
/// Callback for [`crate::channels::snark::P2pChannelsSnarkAction::Received`]
531531
pub on_p2p_channels_snark_received: OptionalCallback<(PeerId, Box<SnarkInfo>)>,
532-
/// Callback for [`P2pChannelsSnarkAction::Libp2pReceived`]
532+
/// Callback for [`crate::channels::snark::P2pChannelsSnarkAction::Libp2pReceived`]
533533
pub on_p2p_channels_snark_libp2p_received: OptionalCallback<(PeerId, Box<Snark>)>,
534534

535-
/// Callback for [`P2pChannelsBestTipAction::RequestReceived`]
535+
/// Callback for [`crate::channels::best_tip::P2pChannelsBestTipAction::RequestReceived`]
536536
pub on_p2p_channels_best_tip_request_received: OptionalCallback<PeerId>,
537537

538-
/// Callback for [`P2pDisconnectionAction::Finish`]
538+
/// Callback for [`crate::disconnection::P2pDisconnectionAction::Finish`]
539539
pub on_p2p_disconnection_finish: OptionalCallback<PeerId>,
540540

541541
/// TODO: these 2 should be set by `P2pConnectionOutgoingAction::Init`
542-
/// Callback for [`P2pConnectionOutgoingAction::Error`]
542+
/// Callback for [`crate::connection::outgoing::P2pConnectionOutgoingAction::Error`]
543543
pub on_p2p_connection_outgoing_error: OptionalCallback<(RpcId, P2pConnectionOutgoingError)>,
544-
/// Callback for [`P2pConnectionOutgoingAction::Success`]
544+
/// Callback for [`crate::connection::outgoing::P2pConnectionOutgoingAction::Success`]
545545
pub on_p2p_connection_outgoing_success: OptionalCallback<RpcId>,
546546

547547
/// TODO: these 3 should be set by `P2pConnectionIncomingAction::Init`
548-
/// Callback for [`P2pConnectionIncomingAction::Error`]
548+
/// Callback for [`crate::connection::incoming::P2pConnectionIncomingAction::Error`]
549549
pub on_p2p_connection_incoming_error: OptionalCallback<(RpcId, String)>,
550-
/// Callback for [`P2pConnectionIncomingAction::Success`]
550+
/// Callback for [`crate::connection::incoming::P2pConnectionIncomingAction::Success`]
551551
pub on_p2p_connection_incoming_success: OptionalCallback<RpcId>,
552-
/// Callback for [`P2pConnectionIncomingAction::AnswerReady`]
552+
/// Callback for [`crate::connection::incoming::P2pConnectionIncomingAction::AnswerReady`]
553553
pub on_p2p_connection_incoming_answer_ready:
554554
OptionalCallback<(RpcId, PeerId, P2pConnectionResponse)>,
555555

556-
/// Callback for [`P2pPeerAction::BestTipUpdate`]
556+
/// Callback for [`crate::peer::P2pPeerAction::BestTipUpdate`]
557557
pub on_p2p_peer_best_tip_update:
558558
OptionalCallback<BlockWithHash<Arc<v2::MinaBlockBlockStableV2>>>,
559559

560-
/// Callback for [`P2pChannelsRpcAction::Ready`]
560+
/// Callback for [`crate::channels::rpc::P2pChannelsRpcAction::Ready`]
561561
pub on_p2p_channels_rpc_ready: OptionalCallback<PeerId>,
562-
/// Callback for [`P2pChannelsRpcAction::Timeout`]
562+
/// Callback for [`crate::channels::rpc::P2pChannelsRpcAction::Timeout`]
563563
pub on_p2p_channels_rpc_timeout: OptionalCallback<(PeerId, P2pRpcId)>,
564-
/// Callback for [`P2pChannelsRpcAction::ResponseReceived`]
564+
/// Callback for [`crate::channels::rpc::P2pChannelsRpcAction::ResponseReceived`]
565565
pub on_p2p_channels_rpc_response_received:
566566
OptionalCallback<(PeerId, P2pRpcId, Option<Box<P2pRpcResponse>>)>,
567-
/// Callback for [`P2pChannelsRpcAction::RequestReceived`]
567+
/// Callback for [`crate::channels::rpc::P2pChannelsRpcAction::RequestReceived`]
568568
pub on_p2p_channels_rpc_request_received:
569569
OptionalCallback<(PeerId, P2pRpcId, Box<P2pRpcRequest>)>,
570570

571-
/// Callback for [`P2pChannelsStreamingRpcAction::Ready`]
571+
/// Callback for [`crate::channels::streaming_rpc::P2pChannelsStreamingRpcAction::Ready`]
572572
pub on_p2p_channels_streaming_rpc_ready: OptionalCallback<()>,
573-
/// Callback for [`P2pChannelsStreamingRpcAction::Timeout`]
573+
/// Callback for [`crate::channels::streaming_rpc::P2pChannelsStreamingRpcAction::Timeout`]
574574
pub on_p2p_channels_streaming_rpc_timeout: OptionalCallback<(PeerId, P2pRpcId)>,
575-
/// Callback for [`P2pChannelsStreamingRpcAction::ResponseReceived`]
575+
/// Callback for [`crate::channels::streaming_rpc::P2pChannelsStreamingRpcAction::ResponseReceived`]
576576
pub on_p2p_channels_streaming_rpc_response_received:
577577
OptionalCallback<(PeerId, P2pRpcId, Option<P2pStreamingRpcResponseFull>)>,
578578

p2p/testing/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ where
224224
///
225225
/// Function `f` extract peer_id from a Rust event.
226226
///
227-
/// See [`super::predicates::all_nodes_with_items`].
227+
/// See [`super::predicates::all_nodes_with_value`].
228228
pub async fn try_wait_for_all_node_peer<I, F>(
229229
cluster: &mut Cluster,
230230
nodes_peers: I,
@@ -246,7 +246,7 @@ where
246246
///
247247
/// Function `f` extract value `v` from a Rust event.
248248
///
249-
/// See [`super::predicates::all_nodes_with_items`].
249+
/// See [`super::predicates::all_nodes_with_value`].
250250
pub async fn try_wait_for_all_nodes_with_value<T, I, F>(
251251
cluster: &mut Cluster,
252252
nodes_values: I,

0 commit comments

Comments
 (0)