chore(deps): bump comfy-table from 7.2.2 to 8.0.1
Bumps comfy-table from 7.2.2 to 8.0.1.
Release notes
Sourced from comfy-table's releases.
v8.0.0
[8.0.0] - 05.08.2026
Breaking Changes
The following types and functions have been removed:
TableComponentenum- The
modifiersmodule andTable::apply_modifierhave been removed.Table::current_style_as_presetTable::set_styleTable::styleTable::remove_styleTable::load_presetThe positional preset string format has been replaced with the new
TableStyle,LineStyleandContentLineStyletypes. The old approach of having "stringified" presets was too finicky and also implicitly bound to the order of variants in the oldTableComponentenum. It was just not a good design.The new design, in comparison, has a nice and (hopefully) intuitive API to define a style. On top of that, all functions on
TableStyleareconst, so custom styles can still be declared as constants:const MY_STYLE: TableStyle = TableStyle::new() .top_border(LineStyle::new('┌', '─', '┬', '┐')) .header_lines(ContentLineStyle::new('│', '┆', '│')) .header_separator(LineStyle::new('╞', '═', '╪', '╡')) .content_lines(ContentLineStyle::new('│', '┆', '│')) .bottom_border(LineStyle::new('└', '─', '┴', '┘'));The new API looks as follows:
- Presets in
comfy_table::presets::*are nowTableStyleconstants.Table::load_style(style)has been added to load a preset or custom style.Table::style()andTable::style_mut()to get a handle to the style used by the table. Themuthandle can be used to change the style.- Instead of modifiers, there are now functions on TableStyle
TableStyle::with_rounded_corners/TableStyle::with_solid_inner_borders.- All fields of
TableStyle,LineStyleandContentLineStyleare public:table.style_mut().top_border.left = Some('╭');The default truncation indicator is now
…instead of.... This should make it more obvious that there's more text and consumes less visual space.Fix
Various performance improvements that reduce table formatting time quite a bit:
- ~36% for "normal" tables (The readme of the project).
17µs -> 11µs- ~34% for "larger" tables, which I would consider a reasonable usecase.
253µs -> 172µs- ~70% for very large tables, i.e. a 10x500 table. ->
20.8ms -> 6.15msMost of these improvements boil down to:
... (truncated)
Changelog
Sourced from comfy-table's changelog.
[8.0.1] - 2026-09-25
- Set MSRV to 1.88
[8.0.0] - 2026-08-05
Breaking Changes
The following types and functions have been removed:
TableComponentenum- The
modifiersmodule andTable::apply_modifierhave been removed.Table::current_style_as_presetTable::set_styleTable::styleTable::remove_styleTable::load_presetThe positional preset string format has been replaced with the new
TableStyle,LineStyleandContentLineStyletypes. The old approach of having "stringified" presets was too finicky and also implicitly bound to the order of variants in the oldTableComponentenum. It was just not a good design.The new design, in comparison, has a nice and (hopefully) intuitive API to define a style. On top of that, all functions on
TableStyleareconst, so custom styles can still be declared as constants:const MY_STYLE: TableStyle = TableStyle::new() .top_border(LineStyle::new('┌', '─', '┬', '┐')) .header_lines(ContentLineStyle::new('│', '┆', '│')) .header_separator(LineStyle::new('╞', '═', '╪', '╡')) .content_lines(ContentLineStyle::new('│', '┆', '│')) .bottom_border(LineStyle::new('└', '─', '┴', '┘'));The new API looks as follows:
- Presets in
comfy_table::presets::*are nowTableStyleconstants.Table::load_style(style)has been added to load a preset or custom style.Table::style()andTable::style_mut()to get a handle to the style used by the table. Themuthandle can be used to change the style.- Instead of modifiers, there are now functions on TableStyle
TableStyle::with_rounded_corners/TableStyle::with_solid_inner_borders.- All fields of
TableStyle,LineStyleandContentLineStyleare public:table.style_mut().top_border.left = Some('╭');The default truncation indicator is now
…instead of.... This should make it more obvious that there's more text and consumes less visual space.Fix
- Various performance improvements that reduce table formatting time quite a bit:
- ~36% for "normal" tables (The readme of the project).
17µs -> 11µs- ~34% for "larger" tables, which I would consider a reasonable usecase.
253µs -> 172µs
... (truncated)
Commits
b947cb6chore: Release comfy-table version 8.0.1283fed2chore: Set msrv to 1.88bbd884fMerge pull request #212 from Nukesor/dependabot/cargo/rstest-0.27f3c6d7ebuild(deps): update rstest requirement from 0.26 to 0.27cf91e01chore: Release comfy-table version 8.0.038f044cchore: Prepare release401171arefactor: Replace old presets with TableStylef4be04achore: Fix and extend lints1bdfda2perf: Don't allocate strings when splitting36bd44fperf: Track line width in split_line- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Bumps comfy-table from 7.2.2 to 8.0.1. This major version replaces the string-based preset and modifier API with the new TableStyle, LineStyle, and ContentLineStyle types, improves formatting performance, and changes the default truncation indicator from ... to …. Code using the removed API must be migrated for the build to pass.
Migration
- Removed
TableComponent,apply_modifier,set_style,remove_style,load_preset,current_style_as_preset, and themodifiersmodule. - Presets in
comfy_table::presets::*are nowTableStyleconstants; apply them withTable::load_styleand tweak fields viatable.style_mut(). - The MSRV is now 1.88.