parazyd před 4 roky
rodič
revize
bb856d3dac
5 změnil soubory, kde provedl 8 přidání a 4 odebrání
  1. 2 2
      .github/workflows/rust-build.yml
  2. 3 0
      Makefile
  3. 2 0
      README.md
  4. 0 1
      src/rpc/jsonrpc.rs
  5. 1 1
      src/serial.rs

+ 2 - 2
.github/workflows/rust-build.yml

@@ -27,5 +27,5 @@ jobs:
                 mkdir -p ~/.config/darkfi
             - name: Compile with all features
               run: |
-                cargo build --all-features --release
-                cargo test
+                make
+                make test

+ 3 - 0
Makefile

@@ -1,2 +1,5 @@
 all:
 	cargo build --release --all-features
+
+test:
+	cargo test --release --all-features

+ 2 - 0
README.md

@@ -1,5 +1,7 @@
 # DarkFi
 
+![Build Status](https://github.com/darkrenaissance/darkfi/actions/workflows/rust-build.yml/badge.svg)
+
 ## Building
 
 ```

+ 0 - 1
src/rpc/jsonrpc.rs

@@ -44,7 +44,6 @@ impl ErrorCode {
     }
 }
 
-#[serde(untagged)]
 #[derive(Serialize, Deserialize, Debug)]
 pub enum JsonResult {
     Resp(JsonResponse),

+ 1 - 1
src/serial.rs

@@ -705,7 +705,7 @@ mod tests {
     fn test_varint_len(varint: VarInt, expected: usize) {
         let mut encoder = io::Cursor::new(vec![]);
         assert_eq!(varint.encode(&mut encoder).unwrap(), expected);
-        assert_eq!(varint.len(), expected);
+        assert_eq!(varint.length(), expected);
     }
 
     fn test_varint_encode(n: u8, x: &[u8]) -> Result<VarInt> {