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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
nakabonne
May 19, 2021
Programming
64
0
Share
Want to quickly put dbg! into external crates?
https://github.com/nakabonne/rhack
nakabonne
May 19, 2021
More Decks by nakabonne
See All by nakabonne
Write an embedded time-series database in Go
nakabonne
1
760
モジュールの深さについて / depth of module
nakabonne
0
170
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
18k
Other Decks in Programming
See All in Programming
Making the RBS Parser Faster
soutaro
0
720
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
0
230
SkillsをS3 Filesに置く時のあれこれ
watany
3
1.6k
20年以上続くプロダクトでも使い続けられる静的解析ツールを求めて
matsuo_atsushi
0
150
「OSSがあるなら自作するな」は AI時代も正しいか ── Build vs Adopt の新しい判断基準
kumorn5s
7
2.7k
PHPでローカル環境用のSSL/TLS証明書を発行することはできるのか? #phpconkagawa
akase244
0
370
AWSはOSSをどのように 考えているのか?
akihisaikeda
0
120
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
140
書き換えて学ぶTemporal #fukts
pirosikick
2
380
GoogleCloudとterraform完全に理解した
terisuke
1
200
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
150
AgentCore Optimizationを始めよう!
licux
3
250
Featured
See All Featured
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
550
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
170
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
120
Building AI with AI
inesmontani
PRO
1
1k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
170
Joys of Absence: A Defence of Solitary Play
codingconduct
1
360
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.6k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
360
Building Flexible Design Systems
yeseniaperezcruz
330
40k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
230
GitHub's CSS Performance
jonrohan
1033
470k
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の基礎知識、コミュニティの温かさを知ることが出来ました