Skip to content

Commit 212f15c

Browse files
jschwemrobinson
andauthored
Minor cleanups preparing for publishing 0.6.0 (#45)
* Update .gitignore and commit Cargo.lock - It's common to commit Cargo.lock now, so that one can reproduce issues due to semver incompatible dependency updates more easily. - Add common IDE folders to gitignore. * Update metadata Link the repository and readme in the Cargo.toml and a short crate documentation. * Add Cargo.lock * Update src/lib.rs Co-authored-by: Martin Robinson <[email protected]> Signed-off-by: Jonathan Schwender <[email protected]> --------- Signed-off-by: Jonathan Schwender <[email protected]> Co-authored-by: Martin Robinson <[email protected]>
1 parent 599d328 commit 212f15c

File tree

7 files changed

+145
-5
lines changed

7 files changed

+145
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target
2-
Cargo.lock
2+
.idea
3+
.vscode

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# Unreleased
1+
# 0.6.0
22

3-
- Remove miniz dependency and replace with libz bindings (or optionally libz-rs)
4-
- Update OTS to v0.9.2 (see [upstream ots 0.9.2 release notes])
3+
- Remove miniz dependency and replace with libz bindings (or optionally libz-rs) (#39)
4+
- Update OTS to v0.9.2 (see [upstream ots 0.9.2 release notes]) (#40)
55
- Update LZ4 to v1.10.0 (#41)
6+
- Use [brotli-decompressor] instead of vendoring brotli sources (#42)
67

8+
[brotli-decompressor]: https://github.com/dropbox/rust-brotli-decompressor
79
[upstream ots 0.9.2 release notes]: https://github.com/khaledhosny/ots/releases/tag/v9.2.0
810

911
# 0.5.2

Cargo.lock

Lines changed: 125 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description = "Sanitiser for untrusted font files"
66
build = "build.rs"
77
license = "BSD-3-Clause"
88
edition = "2015"
9+
repository = "https://github.com/servo/fontsan"
10+
readme = "README.md"
911

1012
[dependencies]
1113
fontsan-woff2 = { version = "0.1", path = "src/deps/woff2"}

src/deps/woff2/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["The Servo Project Developers"]
55
description = "FFI bindings for woff2 for usage in fontsan"
66
license = "MIT"
77
edition = "2021"
8+
repository = "https://github.com/servo/fontsan"
89

910
[dependencies]
1011
brotli-decompressor = { version = "5", features = ["ffi-api"] }

src/deps/woff2/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
extern crate brotli_decompressor;
1+
//! A woff2 wrapper crate for fontsan
2+
//!
3+
//! This is a helper crate for fontsan, which builds woff2 and links it with the
4+
//! rust brotli-decompressor crate (with the c-ffi).
5+
6+
extern crate brotli_decompressor;

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
//
33
// Use of this source code is governed by a BSD-style license
44
// that can be found in the LICENSE file.
5+
//! fontsan - a sanitizer for untrusted font files.
6+
//!
7+
//! Currently, this is just a wrapper around
8+
//! [ots](https://github.com/khaledhosny/ots), which it builds a copy of.
59
610
extern crate fontsan_woff2;
711
extern crate libc;

0 commit comments

Comments
 (0)