Commit 66d53b3e authored by Lorenz Leutgeb's avatar Lorenz Leutgeb
Browse files

radicle-node: 1.1.0 → 1.2.0

parent 2616ef39
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
commit 61865b5b5ad715e2b812087947281f0add9aa05e
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date:   2024-11-19 14:38:38 +0100

    cob: fix documentation
    
    `no_run` will compile but not run the code. Use `ignore` instead, and also added
    `rust` for syntax highlighting.

diff --git a/radicle-cob/src/backend/git/stable.rs b/radicle-cob/src/backend/git/stable.rs
index 0d8ea27b..ef18ae55 100644
--- a/radicle-cob/src/backend/git/stable.rs
+++ b/radicle-cob/src/backend/git/stable.rs
@@ -53,7 +53,7 @@ pub fn read_timestamp() -> i64 {
 ///
 /// # Usage
 ///
-/// ```no_run
+/// ```rust, ignore
 /// let oid1 = with_advanced_timestamp(|| cob.update("New revision OID"));
 /// let oid2 = with_advanced_timestamp(|| cob.update("Another revision OID"));
 /// ```
+4 −8
Original line number Diff line number Diff line
@@ -19,20 +19,16 @@
}:
rustPlatform.buildRustPackage rec {
  pname = "radicle-node";
  version = "1.1.0";
  version = "1.2.0";
  env.RADICLE_VERSION = version;

  src = fetchgit {
    url = "https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git";
    rev = "refs/namespaces/z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/refs/tags/v${version}";
    hash = "sha256-M4oz9tWjI/eqV4Gz1b512MEmvsZ5u3R9y6P9VeeH9CA=";
    rev = "refs/namespaces/z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/refs/tags/v${version}";
    hash = "sha256-RB8yDfttVTkZmk01ubLkwrwD6IYo3Ehe7bPosJzoQk4=";
  };
  useFetchCargoVendor = true;
  cargoHash = "sha256-SzwBQxTqQafHDtH8+OWkAMDnKh3AH0PeSMBWpHprQWM=";

  patches = [
    ./61865b5b5ad715e2b812087947281f0add9aa05e.patch
  ];
  cargoHash = "sha256-/6VlRwWtJfHf6tXD2HJUTbThwTYeZFTJqtaxclrm3+c=";

  nativeBuildInputs = [
    asciidoctor