Skip to content

Commit 3e1d742

Browse files
committed
Bugfixing after dependency version bump
1 parent 6c077ae commit 3e1d742

File tree

9 files changed

+17
-20
lines changed

9 files changed

+17
-20
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,17 @@ jobs:
1717
matrix:
1818
feature:
1919
# Library components, one by one
20-
- lnp
20+
- derive
2121
# Cryptographic optionals
2222
- keygen
23-
- elgamal
24-
- bulletproofs
25-
- ed25519-dalek
2623
# Core rust optionals
2724
- serde
28-
- tokio
29-
- async
3025
# Networking
26+
- tor
27+
- zmq
3128
- url
3229
- websockets
33-
# Full LNP strength, but without Serde
34-
- lnp,websockets,url,tokio,async,keygen,bulletproofs,ed25519-dalek
30+
- vendored_openssl
3531
steps:
3632
- uses: actions/checkout@v2
3733
- name: Install dependencies

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ amplify = "3.9.1"
2626
strict_encoding = { version = "1.7", default-features = false, features = ["derive"] }
2727
lightning_encoding = "0.5.0-beta.1"
2828
inet2_addr = { version = "0.5", features = ["strict_encoding", "stringly_conversions"], path = "./addr" }
29-
inet2_derive = { version = "0.5.0-rc.1", default-features = false, optional = true, path = "./derive" }
29+
inet2_derive = { version = "0.5.0-alpha.1", default-features = false, optional = true, path = "./derive" }
3030
# Dependencies on core rust-bitcoin & cryptography
3131
# ------------------------------------------------
3232
bitcoin = { version = "0.27", default-features = false, features = ["rand"] }

derive/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "inet2_derive"
3-
version = "0.5.0-rc.1"
3+
version = "0.5.0-alpha.1"
44
license = "Apache-2.0"
55
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
66
description = "Derivation macros for Internet2-based crates"
@@ -23,5 +23,6 @@ amplify = "3.9.1"
2323
amplify = "3.9.1"
2424
internet2 = { path = ".." }
2525
lnpbp = "0.5.0-beta.3"
26+
strict_encoding = "1.7.1"
2627
lightning_encoding = "0.5.0-beta.1"
2728
bitcoin = "0.27"

derive/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl EncodingSrategy {
282282
quote_spanned!(span => #import::consensus::encode::consensus_encode(obj))
283283
}
284284
Self::Lightning => {
285-
quote_spanned!(span => #import::lightning_serialize(obj))
285+
quote_spanned!(span => #import::lightning_serialize(obj).expect(ERR))
286286
}
287287
}
288288
}

derive/src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ use syn::{
2929
/// should be used.
3030
macro_rules! attr_err {
3131
($attr:expr, $msg:tt) => {
32-
attr_err!($attr.span(), NAME, $msg, EXAMPLE);
32+
attr_err!($attr.span(), NAME, $msg, EXAMPLE)
3333
};
3434
($name:expr, $msg:tt, $example:tt) => {
35-
attr_err!(::proc_macro2::Span::call_site(), $name, $msg, $example);
35+
attr_err!(::proc_macro2::Span::call_site(), $name, $msg, $example)
3636
};
3737
($attr:expr, $name:expr, $msg:tt, $example:tt) => {
3838
::syn::Error::new(
@@ -41,7 +41,7 @@ macro_rules! attr_err {
4141
"Attribute `#[{}]`: {}\nExample use: {}",
4242
$name, $msg, $example
4343
),
44-
);
44+
)
4545
};
4646
}
4747

derive/tests/api_strict.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::str::FromStr;
66

77
#[derive(Clone, PartialEq, Eq, Debug, Api)]
88
#[api(encoding = "strict")]
9-
#[strict_encoding_crate(lnpbp::strict_encoding)]
109
pub enum Request {
1110
#[api(type = 0x0001)]
1211
Hello(String),

src/presentation/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use crate::transport;
1515

1616
/// Presentation-level LNP error types
17-
#[derive(Clone, PartialEq, Eq, Hash, Debug, Display, Error, From)]
17+
#[derive(Clone, PartialEq, Eq, Debug, Display, Error, From)]
1818
#[display(doc_comments)]
1919
#[non_exhaustive]
2020
pub enum Error {

src/presentation/message.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ impl LightningEncode for TypeId {
5353
fn lightning_encode<E: io::Write>(
5454
&self,
5555
mut e: E,
56-
) -> Result<usize, io::Error> {
57-
e.write(&self.0.to_be_bytes())
56+
) -> Result<usize, lightning_encoding::Error> {
57+
Ok(e.write(&self.0.to_be_bytes())?)
5858
}
5959
}
6060

@@ -151,7 +151,7 @@ impl LightningEncode for Payload {
151151
fn lightning_encode<E: io::Write>(
152152
&self,
153153
mut e: E,
154-
) -> Result<usize, io::Error> {
154+
) -> Result<usize, lightning_encoding::Error> {
155155
Ok(self.type_id.lightning_encode(&mut e)? + e.write(&self.payload)?)
156156
}
157157
}

0 commit comments

Comments
 (0)