openwrt / openwrt/packages

rust: offline build for rust packages

Open
#21,158 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @lu-zero @1715173329
Environment: all

Description:
This is not a problem, it is more a question of how I can build rust programs offline.
I noticed or was not aware that for rust program, the external dependencies are also downloaded each time before building (judging by the log). This means that if I don't have an internet connection, I can't build the rust binaries I built before because I don't have an internet connection to resolve the dependencies. Wouldn't it make sense to use a cache here?

I hope I have not misunderstood and that this is something completely different. Can one of those who know about this briefly explain to me how this is now handled in the OpenWrt build system for rust?

Contributor guide

Open the contributing guide

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

Start by tracing the OpenWrt Rust package build process and how external dependencies are fetched, as described in the issue. Confirm the current cache behavior and determine whether the expected outcome is documentation of offline builds or a defined change to support them.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.