Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c-api: use cargo-c #247

Merged
merged 1 commit into from
Dec 5, 2024
Merged
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
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"
Loading