Skip to content

Commit 0dc3e6e

Browse files
authored
Merge pull request #222 from mozilla/moz-vendor
Update mp4parse_capi for standard mozilla vendoring
2 parents 8c0db4a + 803ca39 commit 0dc3e6e

File tree

9 files changed

+17
-377
lines changed

9 files changed

+17
-377
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
members = [
33
"mp4parse",
44
"mp4parse_capi",
5-
"test_ffi",
65
]
76

87
[profile.release]

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ API is intended to wrap the rust parser. As such, features should primarily
1717
be implemented in the rust parser and exposed via the C API, rather than the C
1818
API implementing features on its own.
1919

20-
`test_ffi` builds and links `test_ffi/src/test.cc` into a small Rust test
21-
harness in `test_ffi/src/main.rs` that verifies the C API against the
22-
generated `mp4parse.h`.
23-
2420
## Tests
2521

2622
Test coverage comes from several sources:

mp4parse_capi/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ exclude = [
1919
"*.mp4",
2020
]
2121

22-
[lib]
23-
crate-type = ["lib", "cdylib"]
24-
2522
[badges]
2623
travis-ci = { repository = "https://github.com/mozilla/mp4parse-rust" }
2724

@@ -34,9 +31,6 @@ num-traits = "0.2.0"
3431
[dev-dependencies]
3532
env_logger = "0.7.1"
3633

37-
[build-dependencies]
38-
cbindgen = "0.5.2"
39-
4034
[features]
4135
# Enable mp4parse_fallible to use fallible memory allocation rather than
4236
# panicking on OOM. Note that this is only safe within Gecko where the system

mp4parse_capi/build.rs

Lines changed: 0 additions & 46 deletions
This file was deleted.

mp4parse_capi/cbindgen.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
header = """/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
4+
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. */
5+
#ifndef mp4parse_rust_mp4parse_h
6+
#error "Don't include this file directly, instead include mp4parse.h"
7+
#endif
8+
"""
9+
include_version = true
10+
braces = "SameLine"
11+
line_length = 100
12+
tab_width = 2
13+
language = "C"
14+
cpp_compat = true
15+
16+
[enum]
17+
rename_variants = "QualifiedScreamingSnakeCase"

test_ffi/Cargo.toml

Lines changed: 0 additions & 12 deletions
This file was deleted.

test_ffi/build.rs

Lines changed: 0 additions & 22 deletions
This file was deleted.

test_ffi/src/main.rs

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)