Skip to content

cargo regression: cdylib output path changed  #3674

@Dushistov

Description

@Dushistov

I use:

$ cargo --version
cargo 0.16.0-nightly (6e0c18c 2017-01-27)

Before that version cargo create cdylib in path like this:
target/release/libhelpers_py.so at now it changed to target/release/deps/libhelpers_py-4bae97ef34a93c7e.so.

The path is important for me, because of my two use cases:

  1. Use rust code from python, to do that I place symlink to .so library
    in the same directory as python script, and this works like a charm,
    I run cargo build and start python script nothing more,
    at now I have to recreate symlink after every new commit?
  2. I use rust code from java on android, build tool for java gradle,
    run cargo build --target=arm-linux-androideabi --release and grab
    output ".so" library, at now I have to write smart gradle script to list
    directory and find file by mask?

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