<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/file_watcher.rs, branch arti-v1.2.8</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-08-28T11:52:15Z</updated>
<entry>
<title>tor-config: Improve FileWatcher documentation.</title>
<updated>2024-08-28T11:52:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-28T11:33:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9e3294daafb7faebc6bc2396e98167ed6a696c57'/>
<id>urn:sha1:9e3294daafb7faebc6bc2396e98167ed6a696c57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Add tests for FileWatcher::watch_path.</title>
<updated>2024-08-28T11:08:28Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-28T10:49:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=46841828b4aa6da666c22eb4ab1eefcda6cedb60'/>
<id>urn:sha1:46841828b4aa6da666c22eb4ab1eefcda6cedb60</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Make a test helper take a reference to TempTestDir.</title>
<updated>2024-08-28T10:41:17Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-28T10:41:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=97dc9f859492571109130b8039bbcab214312349'/>
<id>urn:sha1:97dc9f859492571109130b8039bbcab214312349</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Rename watch_file to watch_path.</title>
<updated>2024-08-27T13:35:30Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-27T11:30:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5619aa0ed22a2421defa53189564baea24a0bf16'/>
<id>urn:sha1:5619aa0ed22a2421defa53189564baea24a0bf16</id>
<content type='text'>
`FileWatcher::watch_file` can be used with arbitrary paths.
</content>
</entry>
<entry>
<title>tor-config: Write tests for FileWatcher.</title>
<updated>2024-08-21T18:54:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-19T16:52:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d8475287fe413bcdabb15f192dd8b380632a82d3'/>
<id>urn:sha1:d8475287fe413bcdabb15f192dd8b380632a82d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Add a TODO about relocating file_watcher.</title>
<updated>2024-08-21T18:54:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-19T18:02:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=57fbe6d2462c4e16ab5e53934af34988d98ca664'/>
<id>urn:sha1:57fbe6d2462c4e16ab5e53934af34988d98ca664</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Add getters for FileWatcher.</title>
<updated>2024-08-21T18:54:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-19T14:06:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4f17820a45167018728f9dbe25ae62bd42a64725'/>
<id>urn:sha1:4f17820a45167018728f9dbe25ae62bd42a64725</id>
<content type='text'>
Sometimes it's useful to know what files/directories are being watched.
For example, the descriptor publisher needs to know in order to figure
out if it needs to update the watcher in response to changes in the
config.
</content>
</entry>
<entry>
<title>tor-config: Support watching dirs for files with a given extension (fmt).</title>
<updated>2024-08-21T18:54:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-20T09:28:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6005361c146fe11ac28690ce0a6d5788d7cc70b1'/>
<id>urn:sha1:6005361c146fe11ac28690ce0a6d5788d7cc70b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Support watching dirs for files with a given extension.</title>
<updated>2024-08-21T18:54:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-19T09:43:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=bd00aa70cbe21566e9f5f988d4c70acc3adaff36'/>
<id>urn:sha1:bd00aa70cbe21566e9f5f988d4c70acc3adaff36</id>
<content type='text'>
This also fixes a couple of issues with the previous implementation:
  * it enables you to watch for more than just one file/extension per
    directory (each directory now has a list of filters. If any of the
    filters apply to the path contained in the notify::Event, the
    `FilterWatcher` notifies the listeners
  * it removes the list watched files from `FileWatcher`. This makes
    things a lot simpler to grok: essentially, the file watcher only
    ever watches directories, notifying if an "interesting" file was
    changed (in our case, the interesting files are files that have a
    relevant extension, such as `.auth`, or specific configuration
    files, as specified by `ConfigurationSources`).
</content>
</entry>
<entry>
<title>tor-config: Move event handling to a separate function.</title>
<updated>2024-08-21T18:33:34Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-20T12:26:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=bbb52b66d78a8a2813153366e63a1dd950206579'/>
<id>urn:sha1:bbb52b66d78a8a2813153366e63a1dd950206579</id>
<content type='text'>
This will soon grow more complex, so I am preemptively moving it out of
`start_watching`.
</content>
</entry>
</feed>
