summaryrefslogtreecommitdiff
path: root/crates/arti-rpcserver/src/objmap
Commit message (Collapse)AuthorAgeFilesLines
* rpc: new method for upgrading/downgrading/cloning object IDsNick Mathewson2026-04-131-1/+57
|
* rpc: Remove caveats wrt rpc::release.Nick Mathewson2026-04-131-10/+0
|
* rpc: Add context support for adding and removing weak refsNick Mathewson2026-04-131-1/+1
|
* rpc: Remove notion of separate table/idx space for weak referencesNick Mathewson2026-04-131-140/+0
| | | | | | | | | We no longer plan to have all weak-refs automatically de-duplicated, for reasons discussed at #868. This lets us discard a lot of code, including code to check for Arc/weak identity. I've disabled some unit tests here, but I'll add them back or rewrite them (or discard them as irrelevant) by the end of the branch.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-1/+1
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* rpc: Move support for weak references behind an experimental featureNick Mathewson2025-01-271-0/+140
| | | | | We haven't decided how these should work (see #868), so having them present by default is a bad idea.
* rpc: Simplify method-dispatch-bypass logic a bitNick Mathewson2024-10-231-4/+0
| | | | | | | | | | | | | | | This commit removes the separate function for asking whether to bypass the dispatch code. Instead, it gives the "invoke with bypass" function an error to return when no dispatch is warranted, and moves the whole responsibility for method dispatch or non-dispatch back into tor-rpcbase. I had to add an ObjectId argument to `invoke_rpc_method` to make this work, but that's probably a good thing. Additionally, this commit tweaks the derive-deftly macro to prevent you from asking for dispatch bypass on special methods, where it isn't implemented (and doesn't really make sense).
* rpc: Move "rpc:release" to be a method on the rpc object.Nick Mathewson2024-10-231-24/+24
| | | | | | | Now, instead of telling the session or the connection to drop the object ID, we tell the object ID to go away. Closes #1663.
* rpc: Remove unimplemented rpc:downgrade method for now.Nick Mathewson2024-10-231-9/+0
| | | | | If and when we implement this, it will likely be different; arti#868 has some thoughts on the implications.
* rpc: Move some object-id-manipulation methods to a new module.Nick Mathewson2024-10-231-0/+61
These will have different implementations soon; this is a more logical place for them.