deps: remove reqwest

This was preventing us from building on windows amd

Closes: https://github.com/damus-io/notedeck/pull/567
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
kernelkind
2024-12-12 11:03:53 -05:00
committed by William Casarin
parent 4bfa26fd8c
commit 13a406b9cd
5 changed files with 8 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ impl fmt::Debug for NoteId {
}
}
static HRP_NOTE: nostr::bech32::Hrp = nostr::bech32::Hrp::parse_unchecked("note");
static HRP_NOTE: bech32::Hrp = bech32::Hrp::parse_unchecked("note");
impl NoteId {
pub fn new(bytes: [u8; 32]) -> Self {
@@ -34,7 +34,7 @@ impl NoteId {
}
pub fn to_bech(&self) -> Option<String> {
nostr::bech32::encode::<nostr::bech32::Bech32>(HRP_NOTE, &self.0).ok()
bech32::encode::<bech32::Bech32>(HRP_NOTE, &self.0).ok()
}
}

View File

@@ -1,7 +1,6 @@
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use crate::Error;
use nostr::bech32::Hrp;
use std::fmt;
use std::ops::Deref;
use tracing::debug;
@@ -9,7 +8,7 @@ use tracing::debug;
#[derive(Eq, PartialEq, Clone, Copy, Hash, Ord, PartialOrd)]
pub struct Pubkey([u8; 32]);
static HRP_NPUB: Hrp = Hrp::parse_unchecked("npub");
static HRP_NPUB: bech32::Hrp = bech32::Hrp::parse_unchecked("npub");
impl Deref for Pubkey {
type Target = [u8; 32];
@@ -58,7 +57,7 @@ impl Pubkey {
}
pub fn try_from_bech32_string(s: &str, verify: bool) -> Result<Self, Error> {
let data = match nostr::bech32::decode(s) {
let data = match bech32::decode(s) {
Ok(res) => Ok(res),
Err(_) => Err(Error::InvalidBech32),
}?;
@@ -79,7 +78,7 @@ impl Pubkey {
}
pub fn to_bech(&self) -> Option<String> {
nostr::bech32::encode::<nostr::bech32::Bech32>(HRP_NPUB, &self.0).ok()
bech32::encode::<bech32::Bech32>(HRP_NPUB, &self.0).ok()
}
}