-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-crate links are not always present #2196
Comments
Likely to be #1588, cargo doesn't correctly handle transitive dependencies currently. |
Thank you for providing more information about transitive dependencies. I tried the method of explicitly declaring the path below, and the result of using pub struct Script {
/// The hash [`H256`] used to match the script code.
///
/// [`H256`]: https://docs.rs/ckb-fixed-hash-core/0.111.0-rc8/ckb_fixed_hash_core/struct.H256.html
pub code_hash: H256,
/// Specifies how to use the `code_hash` to match the script code.
pub hash_type: ScriptHashType,
/// Arguments for script.
pub args: JsonBytes,
} I look forward to docs.rs being able to address this issue in the near future, to align with the local documentation generation (which is currently working fine). |
explicitly link to AsyncRead and AsyncWrite traits of futures crate, since docs.rs cannot resolve the link properly (see rust-lang/docs.rs#2196)
Since a few nightlies ago this has been fixed (rust-lang/cargo#13481), I queued a rebuild of the latest version and https://docs.rs/ckb-jsonrpc-types/0.114.0/ckb_jsonrpc_types/struct.Script.html now includes a link to |
@Nemo157 so this issue can be closed? |
Reporting two examples of missing cross-crate links related to re-exports.
example 1
I noticed that in the documentation for the
Script
struct in theckb-jsonrpc-types
crate (Script
), theH256
type is mentioned. However, theH256
type is not linked to its corresponding documentation page in theckb-fixed-hash-core
crate (H256
).Additional Information:
cargo doc --workspace --no-deps --open
from the localckb
path, the correct link for theH256
type can be generated.H256
type is originally defined inckb-fixed-hash-core
.H256
is re-exported inckb-fixed-hash
(which depends onckb-fixed-hash-core
).H256
is re-exported again inckb-types
(which depends onckb-fixed-hash
).ckb-jsonrpc-types
depends onH256
fromckb-types
.example 2
In the documentation for the
ChainStore
trait in theckb-store
crate (ChainStore
), theDBPinnableSlice
type andDBIter
type are mentioned in required methodsget
andget_iter
. However, the types are not linked to its corresponding documentation pages in theckb-rocksdb
crate (DBPinnableSlice
andDBIterator
).Additional Information:
cargo doc --workspace --open
from the localckb
path, the correct link for theDBPinnableSlice
type andDBIter
type can be generated. However, runningcargo doc --workspace --no-deps --open
produces the same result as described in the issue (i.e., no links are generated).DBPinnableSlice
type andDBIter
type are originally defined inckb-rocksdb
.DBPinnableSlice
type andDBIter
type are re-exported inckb-db
(which depends onckb-rocksdb
).ckb-store
depends onDBPinnableSlice
andDBIter
fromckb-db
.The text was updated successfully, but these errors were encountered: