-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall_rust.sh
70 lines (55 loc) · 2.07 KB
/
install_rust.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
#
clear
echo "
_____ _ _ _ _
| |___ ___ ___| |_ ___ _| | | |_ _ _ |_|
| --| _| -_| .'| _| -_| . | | . | | | _
|_____|_| |___|__,|_| |___|___| |___|_ | |_|
|___|
_____ _ _ _ _ _____ __ _____
| | |_ ___|_|___| |_ ___ ___| |_ ___ ___ | |__| | | __|___ ___ _ _
| --| | _| |_ -| _| . | . | | -_| _| | | | | | | | | | _| .'| | |
|_____|_|_|_| |_|___|_| |___| _|_|_|___|_| |_|_|_|_____| |_____|_| |__,|_ |
|_| |___|
\r\n \r\n
Version: 0.0.1 \r\n
Last Updated: 1/20/2025
"
#-- update yourself! --
rm install_rust.sh && wget https://raw.githubusercontent.com/c2theg/srvBuilds/refs/heads/master/install_rust.sh && chmod u+x install_rust.sh
echo "Downloading required dependencies...\r\n\r\n"
#--------------------------------------------------------------------------------------------
#curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version
sudo -E apt-get update
#-------------------------------------
rustup update
cargo build
cargo run
cargo test
cargo doc
cargo publish
cargo --version
cargo new hello_world
cd hello_world
#----- install libs ----------
# https://tokio.rs/tokio/tutorial/setup
cargo add regex-syntax
cargo add regex
cargo add libc
cargo add memchr
#------ install programs https://crates.io/ ----------
cargo install mini-redis
cargo add base64
cargo add rustls
cargo add socket2
cargo add tokio
cargo add tokio-rustls
cargo add h2
cargo add bytes
cargo add rustls-native-certs
echo "
DONE!
"