Skip to content

Commit

Permalink
c-api: use cargo-c
Browse files Browse the repository at this point in the history
  • Loading branch information
selfisekai committed Dec 5, 2024
1 parent 7cb9255 commit be6d678
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions c-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
[package]
name = "lol_html_c_api"
version = "1.1.2"
description = "Low output latency streaming HTML parser/rewriter"
authors = ["Ivan Nikulin <[email protected]>", "Joshua Nelson <[email protected]>"]
edition = "2021"
links = "lolhtml"
publish = false

[features]
default = ["capi"]
# Required to exist for cargo-c to work
capi = []

[dependencies]
encoding_rs = "0.8.13"
lol_html = { path = "../" }
Expand All @@ -19,3 +25,15 @@ lto = true
[lib]
name = "lolhtml"
crate-type = ["staticlib", "cdylib", "rlib"]

[package.metadata.capi.header]
name = "lol_html"
subdirectory = ""
generation = false

[package.metadata.capi.install.include]
asset = [{ from = "include/lol_html.h" }]

[package.metadata.capi.pkg_config]
name = "lol-html"
filename = "lol-html"

0 comments on commit be6d678

Please sign in to comment.