Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Want to quickly put dbg! into external crates?
Search
nakabonne
May 19, 2021
Programming
0
25
Want to quickly put dbg! into external crates?
https://github.com/nakabonne/rhack
nakabonne
May 19, 2021
Tweet
Share
More Decks by nakabonne
See All by nakabonne
Write an embedded time-series database in Go
nakabonne
1
560
モジュールの深さについて / depth of module
nakabonne
0
130
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
17k
Other Decks in Programming
See All in Programming
How to use Macrobenchmark
veronikapj
0
160
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
140
CSC307 Lecture 14
javiergs
PRO
0
220
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.9k
CSC307 Lecture 10
javiergs
PRO
0
310
Cloudflare Workers x AWS Lambdaの組み合わせユースケース / Cloudflare Workers x AWS Lambda Combination Use Case
seike460
PRO
2
310
今こそ始める、CDKコンストラクトライブラリ開発 ― 入門から実践まで
tmokmss
1
930
20240706_CDKConf
takuyay0ne
0
1.2k
AHC035解説
terryu16
0
710
【Go言語】ジェネリクス
tomo1227
0
170
君たちはどうコードをレビューする (される) か / 大吉祥寺.pm
utgwkk
15
8.5k
しくじり先生 Image Matching Challenge 2024 編
goosehaaan
0
810
Featured
See All Featured
Teambox: Starting and Learning
jrom
130
8.6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
34
1.9k
Git: the NoSQL Database
bkeepers
PRO
423
64k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
2.9k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
90
47k
Thoughts on Productivity
jonyablonski
64
4.1k
Building Your Own Lightsaber
phodgson
101
5.9k
Building Applications with DynamoDB
mza
89
5.8k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Bash Introduction
62gerente
607
210k
Six Lessons from altMBA
skipperchong
24
3.2k
The Invisible Side of Design
smashingmag
294
50k
Transcript
Want to quickly put dbg! into external crates? Rust LT
Online #3
自己紹介 • 中尾 涼 (@nakabonne) • 普段: Go • Rust歴1ヶ月程度
書き始めて思ったこと • 依存ライブラリの挙動をデバッグしたい ◦ dbg!を外部クレートに書きたい • 外部クレートにパッチを送る際少し面倒 → シュッといじって、サッと捨てたい
簡単に解決できそう • ローカルの被参照クレートをコピー (.cargo/registry/src/<crate>) • Cargo.tomlのASTをいじって dependencies の参照先をそこに向ける • 向き先を戻すにはCargo.tomlをUndoするだけ
rhack - github.com/nakabonne/rhack
rhack - github.com/nakabonne/rhack
rhack - github.com/nakabonne/rhack
Good first issues • Add flag to undo to only
undo specific package #3 ◦ rhack undo reqwest • Add flag to also delete local file contents #4 ◦ rhack undo --purge
まとめ Rustの基礎知識、コミュニティの温かさを知ることが出来ました