1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

wslでrust その7

Posted at

概要

wslでrustやってみた。
練習問題やってみた。

練習問題

wgetを作れ。

参考にしたページ

操作手順

$ cd rust
$ cargo new wget
$ cd wget
$ cargo add bytes
$ cargo add reqwest
$ cargo add tokio
$ explorer.exe .
$ cargo build
   Compiling lock_api v0.4.12
   Compiling parking_lot_core v0.9.10
   Compiling scopeguard v1.2.0
   Compiling tokio-macros v2.4.0
   Compiling signal-hook-registry v1.4.2
   Compiling parking_lot v0.12.3
   Compiling tokio v1.41.0
   Compiling tokio-util v0.7.12
   Compiling tokio-native-tls v0.3.1
   Compiling h2 v0.4.6
   Compiling hyper v1.5.0
   Compiling hyper-util v0.1.10
   Compiling hyper-tls v0.6.0
   Compiling reqwest v0.12.9
   Compiling wget v0.1.0 (/home/ore/rust/wget)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 06s

~/rust/wget$ cargo run https://docs.rs/-/rustdoc.static/rust-logo-151179464ae7ed46.svg rust.svg
    Finished dev [unoptimized + debuginfo] target(s) in 0.24s
     Running `target/debug/wget 'https://docs.rs/-/rustdoc.static/rust-logo-151179464ae7ed46.svg' rust.svg`
status code = 200

~/rust/wget$ ls
Cargo.lock  Cargo.toml  rust.svg  src  target

~/rust/wget$

以上

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?