rust-libp2p
The Rust Implementation of the libp2p networking stack.
파일 탐색기
최종 버전 다운로드 (.zip)- bug_report.yml
- config.yml
- enhancement.yml
- feature_request.yml
- cache-factory.yml
- cargo-audit.yml
- ci.yml
- docker-image.yml
- docs.yml
- generated-pr.yml
- interop-test.yml
- semantic-pull-request.yml
- stale.yml
- dependabot.yml
- mergify.yml
- pull_request_template.md
- envelope.proto
- envelope_proto.rs
- mod.rs
- peer_record.proto
- peer_record_proto.rs
- boxed.rs
- and_then.rs
- boxed.rs
- choice.rs
- dummy.rs
- global_only.rs
- map.rs
- map_err.rs
- memory.rs
- optional.rs
- timeout.rs
- upgrade.rs
- apply.rs
- denied.rs
- either.rs
- error.rs
- pending.rs
- ready.rs
- select.rs
- connection.rs
- either.rs
- lib.rs
- muxing.rs
- peer_record.rs
- signed_envelope.rs
- transport.rs
- upgrade.rs
- transport_upgrade.rs
- Cargo.toml
- CHANGELOG.md
- architecture.svg
- coding-guidelines.md
- maintainer-handbook.md
- release.md
- autonat_client.rs
- autonat_server.rs
- Cargo.toml
- README.md
- autonatv2_client.rs
- autonatv2_server.rs
- Cargo.toml
- docker-compose.yml
- Dockerfile
- lib.rs
- main.rs
- index.html
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- main.rs
- network.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- http_service.rs
- main.rs
- Cargo.toml
- docker-compose.yml
- otel-collector-config.yaml
- README.md
- main.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- rzv-discover.rs
- rzv-identify.rs
- rzv-register.rs
- main.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- main.rs
- Cargo.toml
- README.md
- README.md
- main.rs
- Cargo.toml
- Dockerfile
- version.json
- peer_id.rs
- keys.proto
- keys_proto.rs
- mod.rs
- rsa-2048.pk8
- rsa-3072.pk8
- rsa-4096.pk8
- ecdsa.rs
- ed25519.rs
- error.rs
- keypair.rs
- lib.rs
- peer_id.rs
- rsa.rs
- secp256k1.rs
- keypair_api.rs
- serde.rs
- Cargo.toml
- CHANGELOG.md
- readme.md
- mod.rs
- native_ping.rs
- wasm_ping.rs
- arch.rs
- lib.rs
- Cargo.toml
- chromium-ping-version.json
- Dockerfile.chromium
- Dockerfile.native
- native-ping-version.json
- README.md
- bandwidth_metrics.rs
- behaviour.rs
- build.rs
- dns.rs
- identity.rs
- other_transport.rs
- provider.rs
- quic.rs
- relay.rs
- swarm.rs
- tcp.rs
- websocket.rs
- phase.rs
- select_muxer.rs
- select_security.rs
- hole_punching.rs
- ping.rs
- builder.rs
- lib.rs
- tutorials.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- Cargo.toml
- CHANGELOG.md
- main.rs
- Cargo.toml
- config.rs
- main.rs
- Cargo.toml
- lib.rs
- mod.rs
- max_bytes.rs
- max_percentage.rs
- Cargo.toml
- CHANGELOG.md
- bandwidth.rs
- dcutr.rs
- gossipsub.rs
- identify.rs
- kad.rs
- lib.rs
- ping.rs
- protocol_stack.rs
- relay.rs
- swarm.rs
- Cargo.toml
- CHANGELOG.md
- dialer_select.rs
- length_delimited.rs
- lib.rs
- listener_select.rs
- negotiated.rs
- protocol.rs
- Cargo.toml
- CHANGELOG.md
- behaviour.rs
- lib.rs
- memory_store.rs
- store.rs
- Cargo.toml
- CHANGELOG.md
- mod.rs
- test.proto
- test.rs
- lib.rs
- Cargo.toml
- CHANGELOG.md
- codec.rs
- large_message.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- CHANGELOG.md
- behaviour.rs
- config.rs
- http_service.rs
- main.rs
- Cargo.toml
- CHANGELOG.md
- Dockerfile
- README.md
- message.proto
- mod.rs
- webrtc.pb.rs
- drop_listener.rs
- framed_dc.rs
- state.rs
- fingerprint.rs
- lib.rs
- noise.rs
- sdp.rs
- stream.rs
- transport.rs
- Cargo.toml
- CHANGELOG.md
- split_send_size.rs
- codec.rs
- config.rs
- io.rs
- lib.rs
- compliance.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- Cargo.toml
- lib.rs
- compliance.rs
- Cargo.toml
- CHANGELOG.md
- as_client.rs
- as_server.rs
- mod.rs
- structs.proto
- structs.rs
- behaviour.rs
- protocol.rs
- dial_back.rs
- dial_request.rs
- behaviour.rs
- handler.rs
- mod.rs
- structs.proto
- structs.rs
- dial_back.rs
- dial_request.rs
- behaviour.rs
- handler.rs
- client.rs
- protocol.rs
- server.rs
- lib.rs
- v1.rs
- v2.rs
- autonatv2.rs
- test_client.rs
- test_server.rs
- Cargo.toml
- CHANGELOG.md
- holepunch.pb.rs
- message.proto
- mod.rs
- relayed.rs
- inbound.rs
- outbound.rs
- behaviour.rs
- handler.rs
- lib.rs
- protocol.rs
- lib.rs
- Cargo.toml
- CHANGELOG.md
- floodsub.pb.rs
- mod.rs
- rpc.proto
- layer.rs
- lib.rs
- protocol.rs
- topic.rs
- Cargo.toml
- CHANGELOG.md
- explicit_peers.rs
- floodsub.rs
- gossip.rs
- graft_prune.rs
- idontwant.rs
- mesh.rs
- mod.rs
- partial.rs
- peer_queues.rs
- publish.rs
- scoring.rs
- subscription.rs
- topic_config.rs
- mod.rs
- partial_messages.rs
- compat.pb.rs
- compat.proto
- gossipsub.pb.rs
- mod.rs
- rpc.proto
- params.rs
- tests.rs
- backoff.rs
- behaviour.rs
- config.rs
- error.rs
- gossip_promises.rs
- handler.rs
- lib.rs
- mcache.rs
- metrics.rs
- peer_score.rs
- protocol.rs
- queue.rs
- rpc_proto.rs
- subscription_filter.rs
- time_cache.rs
- topic.rs
- transform.rs
- types.rs
- smoke.rs
- Cargo.toml
- CHANGELOG.md
- mod.rs
- structs.proto
- structs.rs
- behaviour.rs
- handler.rs
- lib.rs
- protocol.rs
- smoke.rs
- Cargo.toml
- CHANGELOG.md
- test.rs
- dht.pb.rs
- dht.proto
- mod.rs
- bucket.rs
- entry.rs
- key.rs
- disjoint.rs
- closest.rs
- fixed.rs
- peers.rs
- memory.rs
- store.rs
- addresses.rs
- behaviour.rs
- bootstrap.rs
- handler.rs
- jobs.rs
- kbucket.rs
- lib.rs
- protocol.rs
- query.rs
- record.rs
- client_mode.rs
- Cargo.toml
- CHANGELOG.md
- dns.rs
- query.rs
- iface.rs
- socket.rs
- timer.rs
- behaviour.rs
- lib.rs
- use-tokio.rs
- Cargo.toml
- CHANGELOG.md
- perf.rs
- behaviour.rs
- handler.rs
- behaviour.rs
- handler.rs
- client.rs
- lib.rs
- protocol.rs
- server.rs
- lib.rs
- Cargo.toml
- CHANGELOG.md
- Dockerfile
- handler.rs
- lib.rs
- protocol.rs
- ping.rs
- Cargo.toml
- CHANGELOG.md
- handler.rs
- rate_limiter.rs
- message.proto
- message_v2.pb.rs
- mod.rs
- handler.rs
- transport.rs
- inbound_hop.rs
- inbound_stop.rs
- outbound_hop.rs
- outbound_stop.rs
- behaviour.rs
- copy_future.rs
- lib.rs
- multiaddr_ext.rs
- priv_client.rs
- protocol.rs
- lib.rs
- Cargo.toml
- CHANGELOG.md
- mod.rs
- rendezvous.pb.rs
- rpc.proto
- client.rs
- codec.rs
- lib.rs
- server.rs
- rendezvous.rs
- Cargo.toml
- CHANGELOG.md
- protocol.rs
- cbor.rs
- codec.rs
- handler.rs
- json.rs
- lib.rs
- error_reporting.rs
- peer_address.rs
- ping.rs
- Cargo.toml
- CHANGELOG.md
- behaviour.rs
- control.rs
- handler.rs
- lib.rs
- shared.rs
- upgrade.rs
- lib.rs
- Cargo.toml
- CHANGELOG.md
- README.md
- behaviour.rs
- lib.rs
- tokio.rs
- Cargo.toml
- CHANGELOG.md
- add-changelog-header.sh
- build-interop-image.sh
- ensure-version-bump-and-changelog.sh
- fix-unreachable-pub.py
- list-external-contributors.sh
- connection_handler.rs
- either.rs
- external_addresses.rs
- listen_addresses.rs
- peer_addresses.rs
- toggle.rs
- concurrent_dial.rs
- dial_ranker.rs
- task.rs
- error.rs
- pool.rs
- supported_protocols.rs
- either.rs
- map_in.rs
- map_out.rs
- multi.rs
- one_shot.rs
- pending.rs
- select.rs
- behaviour.rs
- connection.rs
- dial_opts.rs
- dummy.rs
- executor.rs
- handler.rs
- lib.rs
- listen_opts.rs
- stream.rs
- stream_protocol.rs
- test.rs
- translation.rs
- upgrade.rs
- prelude_not_string.rs
- prelude_not_string.stderr
- to_swarm_not_string.rs
- to_swarm_not_string.stderr
- connection_close.rs
- listener.rs
- swarm_derive.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- syn_ext.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- Cargo.toml
- CHANGELOG.md
- mod.rs
- payload.proto
- payload.proto.rs
- framed.rs
- handshake.rs
- io.rs
- lib.rs
- protocol.rs
- smoke.rs
- webtransport_certhashes.rs
- Cargo.toml
- CHANGELOG.md
- mod.rs
- structs.proto
- structs.rs
- error.rs
- handshake.rs
- lib.rs
- smoke.rs
- Cargo.toml
- CHANGELOG.md
- crypt_writer.rs
- lib.rs
- smoke.rs
- Cargo.toml
- CHANGELOG.md
- connecting.rs
- stream.rs
- tokio.rs
- config.rs
- connection.rs
- hole_punching.rs
- lib.rs
- provider.rs
- transport.rs
- smoke.rs
- stream_compliance.rs
- Cargo.toml
- CHANGELOG.md
- tokio.rs
- lib.rs
- provider.rs
- Cargo.toml
- CHANGELOG.md
- ed25519.der
- ed448.der
- gen.sh
- nistp256_sha256.der
- nistp384_sha256.der
- nistp384_sha384.der
- nistp521_sha512.der
- openssl.cfg
- pkcs1_sha256.der
- rsa_pkcs1_sha256.der
- rsa_pkcs1_sha384.der
- rsa_pkcs1_sha512.der
- rsa_pss_sha384.der
- certificate.rs
- lib.rs
- upgrade.rs
- verifier.rs
- smoke.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- Cargo.toml
- CHANGELOG.md
- certificate.rs
- connection.rs
- error.rs
- fingerprint.rs
- mod.rs
- req_res_chan.rs
- sdp.rs
- stream.rs
- transport.rs
- udp_mux.rs
- upgrade.rs
- lib.rs
- smoke.rs
- Cargo.toml
- CHANGELOG.md
- poll_data_channel.rs
- connection.rs
- error.rs
- lib.rs
- sdp.rs
- stream.rs
- transport.rs
- upgrade.rs
- Cargo.toml
- CHANGELOG.md
- README.md
- error.rs
- framed.rs
- lib.rs
- quicksink.rs
- tls.rs
- Cargo.toml
- CHANGELOG.md
- lib.rs
- web_context.rs
- Cargo.toml
- CHANGELOG.md
- bindings.rs
- connection.rs
- endpoint.rs
- error.rs
- fused_js_promise.rs
- lib.rs
- stream.rs
- transport.rs
- utils.rs
- Cargo.toml
- CHANGELOG.md
- .gitignore
- Dockerfile
- go.mod
- go.sum
- main.go
- lib.rs
- Cargo.toml
- README.md
- run.sh
- README.md
- run-all.sh
- .dockerignore
- .editorconfig
- .git-blame-ignore-revs
- .gitignore
- Cargo.lock
- Cargo.toml
- CHANGELOG.md
- clippy.toml
- CONTRIBUTING.md
- deny.toml
- FUNDING.json
- LICENSE
- README.md
- ROADMAP.md
- rustfmt.toml
- SECURITY.md
🚀 설치 가이드
1. 코드 내려받기
git clone https://github.com/libp2p/rust-libp2p
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd rust-libp2p
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker compose -f examples/autonatv2/docker-compose.yml up -d --build
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. Go
보통cd wasm-tests/webtransport-tests/echo-server
이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.
go build ./...
Go 프로그램을 컴파일해 실행 파일을 만듭니다.
go run .
따로 빌드하지 않고 바로 Go 프로그램을 실행합니다.
빌드가 에러 없이 끝나면 성공입니다. go run . 을 썼다면 터미널 출력을 확인하세요.
4. Rust
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Rust (rustup) rustup으로 설치하면 cargo도 함께 설치됩니다.
cargo build --release
Rust 프로젝트를 컴파일합니다.
cargo run
빌드 후 바로 실행까지 진행합니다.
cargo build가 에러 없이 끝나면 성공입니다. target/ 폴더에 실행 파일이 생성됩니다.
// repository documentation
Was this content helpful?
(0 ratings)
