<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gifnksm</author_name>
  <author_url>https://blog.hatena.ne.jp/gifnksm/</author_url>
  <blog_title>gifnksmの雑多なメモ</blog_title>
  <blog_url>https://gifnksm.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>cargo fix の --allow-dirty 相当の挙動を簡単に実装できるライブラリを作りました。 github.com これは何？ Rust の CLI がソースコードを書き換える場合、ユーザーの変更を意図せず上書きしないよう、 cargo fix と同様の安全チェックを入れたくなることがあります。 しかし、この挙動を自前で実装するのはちょっとした手間です。 このライブラリは、 cargo fix の --allow-dirty 、 --allow-staged 、 --allow-no-vcs オプション相当の機能を実装するためのヘルパーライブラリです。 リポジトリの状態を参照して、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgifnksm.hatenablog.jp%2Fentry%2F2026%2F08%2F02%2F194732&quot; title=&quot;`cargo fix` の `--allow-dirty` 相当の処理を簡単に実装できる Rust ライブラリ `vcs-modify-guard` を作った - gifnksmの雑多なメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-08-02 19:47:32</published>
  <title>`cargo fix` の `--allow-dirty` 相当の処理を簡単に実装できる Rust ライブラリ `vcs-modify-guard` を作った</title>
  <type>rich</type>
  <url>https://gifnksm.hatenablog.jp/entry/2026/08/02/194732</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
