build(napi): fix docsrs build

This commit is contained in:
LongYinan 2020-08-24 20:10:11 +08:00
parent 1a23ab4606
commit be8e0f09e6
No known key found for this signature in database
GPG key ID: A3FFE134A3E20881

View file

@ -34,4 +34,4 @@ optional = true
napi-build = { version = "0.2", path = "../build" }
[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]
rustc-args = ["--cfg", "napidocsrs"]