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

Provide Debian package in Releases #124

Open
clintfred opened this issue Nov 28, 2023 · 1 comment
Open

Provide Debian package in Releases #124

clintfred opened this issue Nov 28, 2023 · 1 comment

Comments

@clintfred
Copy link

If a debian package were provided, rust-script could be easily installed/uninstalled on Debian-based systems.

One approach might be to use the excellent cargo-deb

It just worked out of the box for me.

rust-script git:main  
❯ cargo deb
   Compiling version_check v0.9.4
   ...
   Compiling toml v0.7.6
   Compiling rust-script v0.34.0 (/workspace/rust-script)
    Finished release [optimized] target(s) in 22.41s
/workspace/rust-script/target/debian/rust-script_0.34.0_amd64.deb

rust-script git:main  23s
❯ cd target/debian 

rust-script/target/debian git:main  
❯ ls
rust-script_0.34.0_amd64.deb  rust-script.tmp0-stripped
                                                                                                                                                                                              
rust-script/target/debian git:main  
❯ sudo apt install -f ./rust-script_0.34.0_amd64.deb 

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'rust-script' instead of './rust-script_0.34.0_amd64.deb'
The following NEW packages will be installed:
  rust-script
0 upgraded, 1 newly installed, 0 to remove and 131 not upgraded.
Need to get 0 B/922 kB of archives.
After this operation, 3,143 kB of additional disk space will be used.
Get:1 /workspace/rust-script/target/debian/rust-script_0.34.0_amd64.deb rust-script amd64 0.34.0 [922 kB]
Selecting previously unselected package rust-script.
(Reading database ... 302606 files and directories currently installed.)
Preparing to unpack .../rust-script_0.34.0_amd64.deb ...
Unpacking rust-script (0.34.0) ...
Setting up rust-script (0.34.0) ...
                                                                                                                                                                                                                                                                                                                                                              
rust-script/target/debian git:main  
❯ rust-script /tmp/hello.rs 
Hello world

I have good luck combining this with cross to build debians for various OS/arch/libc triples.

@trymeouteh
Copy link

Would like to see a debian package provided as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants