Skip to content

Commit

Permalink
release: update to v0.2.9
Browse files Browse the repository at this point in the history
this release tracks rxing v0.5.20
  • Loading branch information
hschimke committed Jul 24, 2024
1 parent 0f3e02e commit 0c172f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rxing-wasm"
version = "0.2.8"
version = "0.2.9"
edition = "2021"
description = "wasm bindings for rxing to provide commong barcode operations (decode/encode)"
repository = "https://github.com/rxing-core/rxing-wasm"
Expand All @@ -25,7 +25,7 @@ js-sys = "0.3.69"
# code size when deploying.
console_error_panic_hook = { version = "0.1.6", optional = true }

rxing = {version = "~0.5.10", default-features = false, features = ["wasm_support"]}
rxing = {version = "~0.5.20", default-features = false, features = ["wasm_support"]}
#rxing = {path="../rxing", version = "~0.2.23", default-features = false, features = ["wasm_support"]}

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/webpack+js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ <h1>RXing - Decode Barcodes</h1>
</html>

<!-- Copyright 2023 Henry Schimke -->
<!-- Using rxing-wasm v0.2.8 -->
<!-- Using rxing-wasm v0.2.9 -->
2 changes: 1 addition & 1 deletion examples/webpack+js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"webpack-dev-server": "^4.11.1"
},
"dependencies": {
"rxing-wasm": "0.2.8"
"rxing-wasm": "0.2.9"
}
}
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ fn get_result_metadata_name(mdtn: &rxing::RXingResultMetadataType) -> String {
rxing::RXingResultMetadataType::IS_MIRRORED => "Is_Mirrored",
rxing::RXingResultMetadataType::CONTENT_TYPE => "Content_Type",
rxing::RXingResultMetadataType::IS_INVERTED => "Is_Inverted",
rxing::RXingResultMetadataType::FILTERED_CLOSED => "Filtered_Is_Closed",
rxing::RXingResultMetadataType::FILTERED_RESOLUTION => "Filtered_Found_Resolution",
}
.to_owned()
}
Expand All @@ -224,6 +226,8 @@ fn get_result_metadata_value(res_mdt_val: &rxing::RXingResultMetadataValue) -> S

rxing::RXingResultMetadataValue::IsMirrored(v) => v.to_string(),
rxing::RXingResultMetadataValue::IsInverted(v) => v.to_string(),
rxing::RXingResultMetadataValue::FilteredClosed(v) => v.to_string(),
rxing::RXingResultMetadataValue::FilteredResolution(v) => format!("{v:?}"),
}
}

Expand Down

0 comments on commit 0c172f2

Please sign in to comment.