Closed
Description
Problem
Per documentation, target
folder is excluded from package.
let's test it:
$ cargo init t
$ cd t
$ git init . && git add .* * && git commit -m "initial commit"
$ cargo package
$ find target/package/t-0.1.0/target
- It builds the target (default profile on localhost is
dev
) - It includes files from target
First point is concerning, because I don't trust any build process enough to share secrets with it. Even if on CI you cannot call remote, secrets might be embedded into package.
Second point is clear discrepancy with documentation, which states, that target
folder is ALWAYS excluded.
Explicit exclude
for target
folder doesn't work
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version