Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Rebase steed on top of rust/libstd #151

Open
@anatol

Description

Currently steed source tree is based on some mix of rust's libstd sources manually handpicked at different periods of time. Copying files one-by-one and maintaining tree up-to-date consumes time. There were several breakages recently that required copying changes from Rust master branch to steed.

In instead of maintaining source parity this way I propose to rebase steed changes on top of libstd. I tried to make a proof-of-concept, extracted libstd out of rust master branch, moved some changes from steed and I was able to compile static "hello world" example successfully. It works great.

Here is a git command that extracts libstd from Rust sources:
git filter-branch --prune-empty --subdirectory-filter src/libstd && git filter-branch -f --tree-filter 'mkdir -p src; mv * src; mv src/Cargo.toml .; true'

Developing steed on top of upstream libstd has following advantages:

  • bringing upstream changes simplified and becomes automatic
  • it is much easier to see delta between upstream libstd and steed. Keeping this delta small will help in the future when merging libc-less support back to upstream

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions