napi-rs / napi-rs/package-template

why use "cdylib" as crate-type?

Open
#348 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
371
Forks
45
Avg merge
3m
Merged PRs (30d)
1

Description

I have a repo which contains a rust a binary foo and a napi-rs lib bar.

foo will import bar by local path link, but cdylib can't be used as dependency

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no file, test, or entry point. First clarify the intended relationship between the Rust binary foo and napi-rs library bar, then document the expected crate type and a reproducible build result before estimating a change.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.