Skip to content

Commit 142b7cb

Browse files
committed
add bookmark bar in readme example
1 parent 4b38e5f commit 142b7cb

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ opt-level = "s"
2323
lto = "thin"
2424

2525
[features]
26-
default = ["webkit", "native-tls", "ultralight-resources"]
27-
webkit = ["ultralight"]
26+
default = ["ultralight", "native-tls"]
2827
ultralight = ["ul-next"]
2928
ultralight-resources = []
3029
native-tls = ["reqwest/native-tls"]

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
### Examples
2020
#### basic_browser.rs
21+
`cargo run --example basic_browser --features ultralight-resources`
2122
<img src="https://github.com/LegitCamper/icy_browser/blob/main/assets/basic_browser.png?raw=true" width=50%>
2223

2324
``` Rust

assets/basic_browser.png

10.6 KB
Loading

build.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
#[cfg(feature = "ultralight-resources")]
12
use std::env::var;
3+
#[cfg(feature = "ultralight-resources")]
24
use std::fs::{self, DirEntry};
5+
#[cfg(feature = "ultralight-resources")]
36
use std::path::Path;
47

58
fn main() {
69
// ensure runtime resources exist - for examples & local tests
710
#[cfg(feature = "ultralight-resources")]
811
{
12+
let mut possible_directories = Vec::new();
913
let out = var("OUT_DIR").unwrap();
1014
// This allows it to work in this project but also other projects too
1115
let path = Path::new(&out)
@@ -20,8 +24,6 @@ fn main() {
2024
.parent()
2125
.unwrap();
2226

23-
let mut possible_directories = Vec::new();
24-
2527
let target = Path::new(path).join("target");
2628
let debug_path = target.clone().join("debug");
2729
let release_path = target.clone().join("release");
@@ -78,6 +80,7 @@ fn main() {
7880
println!("cargo:rerun-if-changed=Cargo.lock");
7981
}
8082

83+
#[cfg(feature = "ultralight-resources")]
8184
fn get_paths(possible_paths: &mut Vec<fs::DirEntry>, path_str: String) {
8285
let mut paths: Vec<DirEntry> = fs::read_dir(path_str)
8386
.expect("Could not read dir")

src/engines/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use url::Url;
88

99
use crate::ImageInfo;
1010

11-
#[cfg(feature = "webkit")]
11+
#[cfg(feature = "ultralight")]
1212
pub mod ultralight;
1313

1414
pub enum PixelFormat {

0 commit comments

Comments
 (0)