servo / servo/font-kit

Cargo pulling in source dependencies even when the source feature is disabled

Open Beginner friendly
#229 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
840
Forks
137
Avg merge
4h 56m
Merged PRs (30d)
1

Description

For example, this section means that compiling for a linux target will always require fontconfig to be available, even when the source feature is not enabled: https://github.com/servo/font-kit/blob/master/Cargo.toml#L61-L62

This means that eg. cross-compiling becomes more difficult, since you now need fontconfig compiled for the target system, even though you don't intend to use it.

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

Read Cargo.toml around lines 61-62 and inspect how the source feature and fontconfig dependency are declared. Reproduce a Linux-target build with the source feature disabled, then verify that fontconfig is no longer required for that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.