mirror of
https://github.com/mikedilger/gossip.git
synced 2024-10-01 09:21:53 +00:00
Merge branch 'unstable' into feature/improve_doc_developers
This commit is contained in:
commit
0daa53fc81
@ -55,6 +55,7 @@ The following features make gossip different than most other nostr clients so fa
|
|||||||
- [x] NIP-21 - nostr: URL scheme
|
- [x] NIP-21 - nostr: URL scheme
|
||||||
- [x] NIP-22 - Event created_at Limits
|
- [x] NIP-22 - Event created_at Limits
|
||||||
- [ ] NIP-23 - Long-form Content [Optional viewing, but not creating]
|
- [ ] NIP-23 - Long-form Content [Optional viewing, but not creating]
|
||||||
|
- [ ] NIP-24 - Extra metadata fields and tags
|
||||||
- [x] NIP-25 - Reactions
|
- [x] NIP-25 - Reactions
|
||||||
- [x] NIP-26 - Delegated Event Signing
|
- [x] NIP-26 - Delegated Event Signing
|
||||||
- [x] NIP-27 - Text Note References
|
- [x] NIP-27 - Text Note References
|
||||||
@ -137,10 +138,10 @@ The output will be a binary executable in `target/release/gossip`
|
|||||||
|
|
||||||
This binary should be portable to similar systems with similar hardware and operating system.
|
This binary should be portable to similar systems with similar hardware and operating system.
|
||||||
|
|
||||||
If you want a binary optimized for your exact processor with the newest features enabled:
|
If you want a binary optimized for your exact processor with the newest CPU features enabled, and all gossip features enabled:
|
||||||
|
|
||||||
````bash
|
````bash
|
||||||
RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable" cargo build --release
|
RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable" cargo build --features=lang-cjk,video-ffmpeg --release
|
||||||
````
|
````
|
||||||
|
|
||||||
Everything gossip needs (fonts, icons) is baked into this executable. It doesn't need to find assets. So you can move it and run it from anywhere.
|
Everything gossip needs (fonts, icons) is baked into this executable. It doesn't need to find assets. So you can move it and run it from anywhere.
|
||||||
|
@ -18,7 +18,7 @@ rustls-tls = [ "gossip-lib/rustls-tls" ]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bech32 = "0.9"
|
bech32 = "0.9"
|
||||||
eframe = { git = "https://github.com/mikedilger/egui", rev = "50393e4f34ac6246b8c2424e42fbe5b95e4b4452", features = [ "persistence" ] }
|
eframe = { git = "https://github.com/mikedilger/egui", rev = "50393e4f34ac6246b8c2424e42fbe5b95e4b4452", features = [ "persistence", "wayland" ] }
|
||||||
egui-winit = { git = "https://github.com/mikedilger/egui", rev = "50393e4f34ac6246b8c2424e42fbe5b95e4b4452", features = [ "default" ] }
|
egui-winit = { git = "https://github.com/mikedilger/egui", rev = "50393e4f34ac6246b8c2424e42fbe5b95e4b4452", features = [ "default" ] }
|
||||||
egui-video = { git = "https://github.com/mikedilger/egui-video", rev = "81cc3ee58818754272582397161cc55ff11bde18", features = [ "from_bytes" ], optional = true }
|
egui-video = { git = "https://github.com/mikedilger/egui-video", rev = "81cc3ee58818754272582397161cc55ff11bde18", features = [ "from_bytes" ], optional = true }
|
||||||
gossip-relay-picker = { git = "https://github.com/mikedilger/gossip-relay-picker", rev = "39f9c14b1c201842c512754920f4da4987cd68b6" }
|
gossip-relay-picker = { git = "https://github.com/mikedilger/gossip-relay-picker", rev = "39f9c14b1c201842c512754920f4da4987cd68b6" }
|
||||||
|
8
gossip-bin/build.rs
Normal file
8
gossip-bin/build.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
// link to bundled libraries
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
|
println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path");
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
|
||||||
|
}
|
@ -61,6 +61,8 @@ pub fn run() -> Result<(), Error> {
|
|||||||
let (icon_width, icon_height) = icon.dimensions();
|
let (icon_width, icon_height) = icon.dimensions();
|
||||||
|
|
||||||
let options = eframe::NativeOptions {
|
let options = eframe::NativeOptions {
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
app_id: Some("gossip".to_string()),
|
||||||
decorated: true,
|
decorated: true,
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
fullsize_content: true,
|
fullsize_content: true,
|
||||||
|
@ -6,11 +6,4 @@ fn main() {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
let git_hash = String::from_utf8(output.stdout).unwrap();
|
let git_hash = String::from_utf8(output.stdout).unwrap();
|
||||||
println!("cargo:rustc-env=GIT_HASH={git_hash}");
|
println!("cargo:rustc-env=GIT_HASH={git_hash}");
|
||||||
|
|
||||||
// link to bundled libraries
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path");
|
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user