README.md 661 Bytes
Newer Older
Reizner Evgeniy's avatar
Reizner Evgeniy committed
1
C interface for *resvg*.
Reizner Evgeniy's avatar
Reizner Evgeniy committed
2 3 4 5 6 7 8 9 10 11 12 13

## Build

```bash
# Build with a Qt backend
cargo build --release --features="qt-backend"
# or with a cairo backend
cargo build --release --features="cairo-backend"
# or with both.
cargo build --release --features="qt-backend cairo-backend"
```

RazrFalcon's avatar
RazrFalcon committed
14
See [BUILD.adoc](../BUILD.adoc) for details.
Reizner Evgeniy's avatar
Reizner Evgeniy committed
15

Reizner Evgeniy's avatar
Reizner Evgeniy committed
16 17 18 19 20 21 22
This will build a dynamic library. There is no point in building the static
library since it will depend on Qt/cairo anyway.

## Examples

A usage example with a *cairo* backend can be found at [examples/cairo-capi](../examples/cairo-capi).

RazrFalcon's avatar
RazrFalcon committed
23
A usage example with a *qt* backend can be found in the [examples/qt-demo](../examples/qt-demo) app.