grammers-session breaking changes
grammers-session 0.11.0 (October 15, 2026) is its newest release with breaking changes, 6 of them. The first: Renamed grammers_session::ErasedSession. Every breaking API change we have recorded in grammers-session on crates.io: 40 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.12.0, released November 8, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
grammers-session 0.11.0 breaking changes
- Renamed
grammers_session::ErasedSession
Use grammers_session::storages::ErasedSession instead. crates.io - Signature changed
grammers_session::Session::cache_peer
Was fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'_, Result<(), Self::Error>>; now fn cache_peer(&self, peer: PeerInfo) -> BoxFuture<'_, Result<(), Self::Error>>. crates.io - Signature changed
grammers_session::Session::Error
Was type Error; now type Error: Send. crates.io - Signature changed
grammers_session::updates::MessageBoxes::apply_channel_difference
Was fn apply_channel_difference(&mut self, difference: tl::enums::updates::ChannelDifference) -> defs::UpdateAndPeers; now fn apply_channel_difference(&mut self, difference: tl::enums::updates::ChannelDifference) -> UpdateAndPeers. crates.io - Signature changed
grammers_session::updates::MessageBoxes::apply_difference
Was fn apply_difference(&mut self, difference: tl::enums::updates::Difference) -> defs::UpdateAndPeers; now fn apply_difference(&mut self, difference: tl::enums::updates::Difference) -> UpdateAndPeers. crates.io - Signature changed
grammers_session::updates::MessageBoxes::process_updates
Was fn process_updates(&mut self, updates: UpdatesLike) -> Result<defs::UpdateAndPeers, Gap>; now fn process_updates(&mut self, updates: UpdatesLike) -> Result<UpdateAndPeers, Gap>. crates.io
grammers-session 0.10.0 breaking changes
- Removed
grammers_session::types::PeerKind::UserSelf
grammers_session::types::PeerKind::UserSelf was removed in grammers-session 0.10.0 crates.io - Signature changed
grammers_session::Session
Was trait Session: Send + Sync; now trait Session: Send + Sync + 'static. crates.io - Signature changed
grammers_session::Session::cache_peer
Was fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'_, ()>; now fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'_, Result<(), Self::Error>>. crates.io - Signature changed
grammers_session::Session::dc_option
Was fn dc_option(&self, dc_id: i32) -> Option<DcOption>; now fn dc_option(&self, dc_id: i32) -> Result<Option<DcOption>, Self::Error>. crates.io - Signature changed
grammers_session::Session::home_dc_id
Was fn home_dc_id(&self) -> i32; now fn home_dc_id(&self) -> Result<i32, Self::Error>. crates.io - Signature changed
grammers_session::Session::peer
Was fn peer(&self, peer: PeerId) -> BoxFuture<'_, Option<PeerInfo>>; now fn peer(&self, peer: PeerId) -> BoxFuture<'_, Result<Option<PeerInfo>, Self::Error>>. crates.io - Signature changed
grammers_session::Session::peer_ref
Was fn peer_ref(&self, peer: PeerId) -> BoxFuture<'_, Option<PeerRef>>; now fn peer_ref(&self, peer: PeerId) -> BoxFuture<'_, Result<Option<PeerRef>, Self::Error>>. crates.io - Signature changed
grammers_session::Session::set_dc_option
Was fn set_dc_option(&self, dc_option: &DcOption) -> BoxFuture<'_, ()>; now fn set_dc_option(&self, dc_option: &DcOption) -> BoxFuture<'_, Result<(), Self::Error>>. crates.io - Signature changed
grammers_session::Session::set_home_dc_id
Was fn set_home_dc_id(&self, dc_id: i32) -> BoxFuture<'_, ()>; now fn set_home_dc_id(&self, dc_id: i32) -> BoxFuture<'_, Result<(), Self::Error>>. crates.io - Signature changed
grammers_session::Session::set_update_state
Was fn set_update_state(&self, update: UpdateState) -> BoxFuture<'_, ()>; now fn set_update_state(&self, update: UpdateState) -> BoxFuture<'_, Result<(), Self::Error>>. crates.io
And 7 more in this version. Sign up to see every change
grammers-session 0.9.0 breaking changes
- Removed
grammers_session::PeerAuthCache
Use Session::peer instead. crates.io - Removed
grammers_session::storages::TL_VERSION
grammers_session::storages::TL_VERSION was removed in grammers-session 0.9.0 crates.io - Removed
grammers_session::storages::TlSession
grammers_session::storages::TlSession was removed in grammers-session 0.9.0 crates.io - Renamed
grammers_session::defs
Use grammers_session::types instead. crates.io - Signature changed
grammers_session::defs::ChannelKind::Broadcast
Was Broadcast; now Broadcast = 1. crates.io - Signature changed
grammers_session::defs::PeerId::channel
Was fn channel(id: i64) -> Self; now fn channel(id: i64) -> Option<Self>. crates.io - Signature changed
grammers_session::defs::PeerId::chat
Was fn chat(id: i64) -> Self; now fn chat(id: i64) -> Option<Self>. crates.io - Signature changed
grammers_session::defs::PeerId::user
Was fn user(id: i64) -> Self; now fn user(id: i64) -> Option<Self>. crates.io - Signature changed
grammers_session::defs::PeerInfo::auth
Was fn auth(&self) -> PeerAuth; now fn auth(&self) -> Option<PeerAuth>. crates.io - Signature changed
grammers_session::Session::cache_peer
Was fn cache_peer(&self, peer: &PeerInfo); now fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'_, ()>. crates.io
And 7 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.