Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo: Run build.rs to get extra --cfg args #13779

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Oct 7, 2024

  1. cargo: Fix feature resolution

    Introduce a global Cargo interpreter state that keeps track of enabled
    features on each crate.
    
    Before generating AST of a Cargo subproject, it downloads every
    sub-subproject and resolves the set of features enabled on each of them
    recursively. When it later generates AST for one its dependencies, its
    set of features and dependencies is already determined.
    xclaesse committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    f1b577e View commit details
    Browse the repository at this point in the history
  2. cargo: Use the library name instead of package name

    The library name defaults to its package name, but it can be different.
    For example:
    - package name: cairo-sys-rs
    - library name: cairo-sys
    - dependency name: ffi
    xclaesse committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    06fd18b View commit details
    Browse the repository at this point in the history
  3. cargo: Load Cargo.lock and subprojects/*.wrap while recursing

    In the case the main project has a .wrap file for a cargo subproject,
    that subproject's Cargo.lock must be loaded before we can recursively
    fetch all its dependencies.
    xclaesse committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    e527d8a View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. rust: Add get_target_triplet() method

    This returns --target value from rustc command line, or the native
    target.
    xclaesse committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    fc1fbce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db26175 View commit details
    Browse the repository at this point in the history