Skip to content

Commit 89a0110

Browse files
authored
Merge pull request #33 from contentauth/dyross/remote-manifests
allows clients fetch cloud manifests, read pdfs
2 parents 1a1787b + f82d4ac commit 89a0110

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# will have compiled files and executables
33
debug/
44
target/
5+
.idea
56

67
venv/
78
.venv/

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111

1212

1313
[dependencies]
14-
c2pa = { version = "0.35.0", features = ["unstable_api", "openssl"] }
14+
c2pa = {version = "0.35.0", features = ["unstable_api", "openssl", "pdf", "fetch_remote_manifests"]}
1515
pem = "3.0.3"
1616
serde = { version = "1.0.197", features = ["derive"] }
1717
serde_derive = "1.0"

tests/fixtures/cloud.jpg

180 KB
Loading

tests/test_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ def getitem(d, key):
5050
]
5151
}
5252

53+
def test_v2_read_cloud_manifest():
54+
reader = Reader.from_file("tests/fixtures/cloud.jpg")
55+
manifest = reader.get_active_manifest()
56+
assert manifest is not None
57+
5358
def test_version():
5459
assert version() == "0.5.1"
5560

0 commit comments

Comments
 (0)