Skip to content

Commit

Permalink
remove deprecated wee_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Dec 8, 2024
1 parent 86ae7f0 commit f5f3c56
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 74 deletions.
59 changes: 6 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ego-tree = "0.9.0"
# some tests must run sequentially.
# if library is broken, alternative is: cargo test -- --test-threads 1
graph-rdfa-processor = { version = "0.2.0", path='./lib-rdfa' }
wee_alloc = "0.4.5"
console_error_panic_hook = "0.1.7"
serial_test = "3.2.0"
test-case = "3.3.1"
Expand Down
39 changes: 24 additions & 15 deletions lib-rdfa/examples/earl_html5/example0207.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
<!DOCTYPE html>
<html prefix="cal: http://www.w3.org/2002/12/cal/icaltzd# xsd: http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
<!doctype html>
<html
prefix="cal: http://www.w3.org/2002/12/cal/icaltzd# xsd: http://www.w3.org/2001/XMLSchema#"
>
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date"
>Oct 21st</span
>
to
<span property="cal:dtend" content="2006-10-23" datatype="xsd:date"
>Oct 23rd</span
>. See
<a rel="cal:url" href="http://freetime.example.org/"
>FreeTime.Example.org</a
>
for info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
3 changes: 1 addition & 2 deletions rdfa-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition.workspace = true
license.workspace = true

[features]
default = ["wee_alloc", "console_error_panic_hook"]
default = ["console_error_panic_hook"]


[lib]
Expand All @@ -21,5 +21,4 @@ getrandom = { version = "0.2.10", features = ["js"] }
graph-rdfa-processor.workspace = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen.workspace = true
wee_alloc = { workspace = true, optional = true }
console_error_panic_hook = { workspace = true, optional = true }
3 changes: 0 additions & 3 deletions rdfa-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ mod utils;
use graph_rdfa_processor::RdfaGraph;
use wasm_bindgen::prelude::*;

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[wasm_bindgen]
pub fn html_to_rdfa(html: &str, base: &str, well_known_prefix: &str) -> String {
utils::set_panic_hook();
Expand Down

0 comments on commit f5f3c56

Please sign in to comment.