Docs: Update README for library#28
Conversation
87e12ff to
5f551b0
Compare
5f551b0 to
edd6c75
Compare
edd6c75 to
3be5d5c
Compare
|
This looks great. In 699fafc - docs: Update README for the library For code blocks you should include the language to enable syntax highlighting. Note that for toml files comments are denoted with |
3be5d5c to
70af056
Compare
- Add syntax highlighting for code blocks in README
70af056 to
1da987e
Compare
| ## License | ||
|
|
||
| Licensed under either of | ||
|
|
||
| * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <https://www.apache.org/licenses/LICENSE-2.0>) | ||
| * MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>) | ||
|
|
||
| at your option. |
There was a problem hiding this comment.
There's no Apache-2.0 License in this PR or the repo.
There was a problem hiding this comment.
Should have a LICENSE-MIT, LICENSE-APACHE and a LICENSE.md (so GH renders it).
There was a problem hiding this comment.
ACK 1da987e fixed sentence spacing and missing backtick in docs.
--- a/src/client.rs
+++ b/src/client.rs
@@ -107,11 +107,11 @@ impl Client {
Self {
inner: jsonrpc::Client::with_transport(transport),
}
}
- /// Calls the underlying RPC `method` with the given`args`.
+ /// Calls the underlying RPC `method` with the given `args`.
///
/// This is the generic function used by all specific RPC methods.
pub fn call<T>(&self, method: &str, args: &[serde_json::Value]) -> Result<T, Error>
where
T: for<'de> serde::Deserialize<'de>,
@@ -160,11 +160,11 @@ impl Client {
.0
.try_into()
.map_err(Error::TryFromInt)
}
- /// Retrieves the ['BlockHash'] of the block at `height`.
+ /// Retrieves the [`BlockHash`] of the block at `height`.
///
/// # Arguments
///
/// * `height`: The block height
///
|
reACK 1d89d3c |
|
@ValuedMammal we don't have the actual |
I meant that these should be added in this PR. |
|
@tvpeter can you rename |
22f0f6e to
8c70226
Compare
LICENSE.md
Outdated
| Except as otherwise noted in individual files, all files in this repository are | ||
| licensed under the Apache License, Version 2.0 <[Apache 2.0](LICENSE-APACHE) or | ||
| http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <[MIT](LICENSE-MIT) or | ||
| http://opensource.org/licenses/MIT>, at your option. |
There was a problem hiding this comment.
| Except as otherwise noted in individual files, all files in this repository are | |
| licensed under the Apache License, Version 2.0 <[Apache 2.0](LICENSE-APACHE) or | |
| http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <[MIT](LICENSE-MIT) or | |
| http://opensource.org/licenses/MIT>, at your option. | |
| Except as otherwise noted in individual files, all files in this repository are | |
| licensed under the Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or | |
| <http://www.apache.org/licenses/LICENSE-2.0>) or the MIT License ([LICENSE-MIT](LICENSE-MIT) or | |
| <http://opensource.org/licenses/MIT>), at your option. |
There was a problem hiding this comment.
Should the link title (LICENSE-APACHE, LICENSE-MIT) be uniform everywhere? In Readme and at the top of LICENSE.md?
8c70226 to
01facc5
Compare
|
@tvpeter your latest push is not quite right. Compare it against my last review. |
01facc5 to
8bf074a
Compare
Seen it and fixed. Thank you. |
|
ACK |
Description
This PR updates the Readme for the library. It also adds project License files.
Checklists
All Submissions:
cargo fmtandcargo clippybefore committing