Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.84.0
toolchain: 1.88.0
targets: wasm32-unknown-unknown
- uses: webfactory/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.84.0
toolchain: 1.88.0
targets: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Expand Down
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,41 @@
# C2PA JavaScript SDK
# C2PA JavaScript SDK (legacy)

> [!WARNING]
> The packages in this monorepo are now deprecated. Implementors wishing to interact with C2PA data on the web should use our [new libraries instead](https://github.com/contentauth/c2pa-js).

This library aims to make viewing and verifying C2PA metadata in the browser as easy as possible.

For more information, please view the documentation at https://opensource.contentauthenticity.org/docs/js-sdk/getting-started/overview.

## Getting started
## Prerequisites

To build this library on macOS, you must first install LLVM Clang as follows:
1. If you haven't already, install Homebrew:
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
1. Install LLVM Clang:
```
brew install llvm
```
1. Add it to your PATH:
```
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
```
For future use, add it to your `.zshrc` file:
```
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
```

Verify the installation:
```
llvm-config --version
```
You should see a version number, such as 20.1.3.

## Build

This monorepo is managed by [Rush](https://rushjs.io/). To get started:
This monorepo is managed by [Rush](https://rushjs.io/). To build the library:

Install Rush:
```
Expand Down
Loading
Loading