Skip to content

Cargo Install Python Feature Fail #248

@dan-fritchman

Description

@dan-fritchman

Great library, thanks for your work on it!
My attempts to install the python feature via cargo install have failed like so:

$ cargo install typeshare-cli --features python
    Updating crates.io index
  Installing typeshare-cli v1.13.2
error: failed to compile `typeshare-cli v1.13.2`, intermediate artifacts can be found at `/var/folders/2t/c78725w17pb1bcxb9t3k17wc0000gn/T/cargo-installqmqDAA`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  the package 'typeshare-cli' does not contain this feature: python

The content of that intermediate artifact has a bunch of system info. It's running on a recent-vintage Mac, rust v1.86.

{
  "rustc_fingerprint": 9993726671704858020,
  "outputs": {
    "17747080675513052775": {
      "success": true,
      "status": "",
      "code": 0,
      "stdout": "rustc 1.86.0 (05f9846f8 2025-03-31)\nbinary: rustc\ncommit-hash: 05f9846f893b09a1be1fc8560e33fc3c815cfecb\ncommit-date: 2025-03-31\nhost: x86_64-apple-darwin\nrelease: 1.86.0\nLLVM version: 19.1.7\n",
      "stderr": ""
    },
    "7971740275564407648": {
      "success": true,
      "status": "",
      "code": 0,
      "stdout": "___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/Users/dan/.rustup/toolchains/stable-x86_64-apple-darwin\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_feature=\"sse4.1\"\ntarget_feature=\"ssse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n",
      "stderr": ""
    }
  },
  "successes": {}
}

I know Python support is provisional.
Where does/ should it work best? (Thinking on other platforms/ OSes, on the git top-of-tree, etc.)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions