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 4, 2024
1 parent 2191176 commit 63def06
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1,043 deletions.
14 changes: 14 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,11 @@ lto = true
[lib]
name = "lolhtml"
crate-type = ["staticlib", "cdylib", "rlib"]

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

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

0 comments on commit 63def06

Please sign in to comment.