All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- bump
libnotcurses-sys
tov3.11.0
. - wrap the raw notcurses pointer using reference counting to ensure proper dropping order.
- The stopping of the notcurses context is now deferred until all dependent objects are dropped.
- This fixes potential UB if
Notcurses
was dropped before planes or visuals. - change all methods that previously required a mutable
Notcurses
reference to require a shared reference. - require a new shared
Notcurses
reference inVisual
andVisualBuilder
constructors. - update all examples.
- update dependencies; bump
libnotcurses-sys
tov3.10.1
. - fix
Plane::reparent_family
. - fix
Visual::from_file
. - add
check.sh
script. - add changelog.
- update CI.
3.5.0 - 2023-09-08
- new feature
nightly_docs
.
- bump
libnotcurses-sys
tov3.10.0
. - bump MSRV to
1.65.0
.
- avoid destructuring enums.
- update CI.
3.4.1 - 2023-04-23
- update libnotcurses-sys to
v3.9.1
.
- fix compilation on MacOs.
3.4.0 - 2023-04-09
- add
cuadra
dependency to use theirPosition
andSize
replacing the old types.
- update
Blitter
methods related to cell size to use the expected order of width first.
- remove
az
dependency.
3.3.0 - 2023-04-08
- add missing
Plane
methods:erase
,erase_region
,contents
,contents_region
. - add multiple missing inline attributes.
- update libnotcurses to
3.9.0
. - make
VisualOptions
public. - rename
Error
andResult
toNotcursesError
andNotcursesResult
, respectively (breaking change).
- fix
Plane
'sset_base_*
methods. - update impl
Debug
forStyle
.
- update CIs.
- update docs.
- update lints.
- minor refactor.
3.2.3 - 2023-03-22
- update
libnotcurses-sys
tov3.7.5
.
- fix
Nc
'sosversion
method.
3.2.2 - 2023-02-10
- update libnotcurses-sys to
v3.7.4
. - remove
vendored
as a default feature.
3.2.1 - 2023-02-09
- impl from
KeyMod
foru32
. - add
rgb
interoperability dependency.
- update libnotcurses sys to
v3.7.2
. - depend on
core
when possible instead ofstd
. - make
vendored
a default feature.
3.2.0 - 2023-01-19
- update dependencies.
- update libnotcurses-sys to
v3.7.1
.
- update libnotcurses-sys to
- refactor methods for
Input:
- rename
is_received
toreceived
. has_key
,has_char
forsome_key
,some_char
.- add
is_press
,is_release
,is_repeat
.
- rename
- new methods for
Received
:is_key
,is_char
,key
,char
. - new methods for
InputType
:is_press
,is_repeat
,is_release
. - add missing inlines.
3.1.0 - 2022-09-26
- rename methods
Visual::set_pixel
toset_blitter_pixel
andVisualBuilder::pixel
toblitter_pixel
. - add
Visual
methodsset_pixel
&get_pixel
. - update
Plane
:- fix method
duplicate
to accept a shared self reference. - impl
Clone
. - fix
Plane::resize_simple
order of dimensions. - accept impl
Into<Size|Position>
forresize
&&resize_simple
. - add methods:
styles
,on_styles
,off_styles
,set_styles
,set_fg_palindex
,set_bg_palindex
. - update
Plane
methods:set_base_bg
,set_base_fg
&set_base_channels
, now acceptingimpl Into<Channel*>
instead ofChannel
.
- fix method
- fix double free when dropping order is not ideal.
- add
new
const
constructor forRgb
&Rgba
. - add conversions for
Rgb
andRgba
. - update
Style
:- fix method
to_vec
to only includeNone
if there are no other styles present. - improve
Display
&Debug
impls. - fix
From
/Into
NcStyle
impls. - fix supported styles (WIP→ sys?)
- rename method
add
toset
. - add new method
unset
. - improve example
info
.
- fix method
- Update
Channels
:- new constructors:
with_default
,from_rgb
,from_rgb_both
,from_rgb_alpha
,from_rgb_alpha_both
,combine
. - new methods:
reverse
,set_fg
,set_bg
,set_channels
. - new
From
impls from tuples and arrays of primitives, representing different bg & fg channels:(r,g,b,r,g,b)
,((r,g,b),(r,g,b))
,[r,g,b,r,g,b]
,[r,g,b,r,g,b]
,[[r,g,b],[r,g,b]]
, same bg & fg channels:(r,g,b)
,[r,g,b]
, and a combination of bg & fg impl Into(fg, bg)
,[fg, bg]
.
- new constructors:
- impl
Display
forCapabilities
.
3.0.3 - 2022-07-25
- update
Channels
:- new constructors:
with_default
,from_rgb
,from_rgb_both
,from_rgb_alpha
,from_rgb_alpha_both
,combine
. - new methods:
reverse
,set_fg
,set_bg
,set_channels
. - new
From
impls from tuples and arrays of primitives, representing different bg & fg channels:(r,g,b,r,g,b)
,((r,g,b),(r,g,b))
,[r,g,b,r,g,b]
,[r,g,b,r,g,b]
,[[r,g,b],[r,g,b]]
, same bg & fg channels:(r,g,b)
,[r,g,b]
, and a combination of bg & fg impl Into(fg, bg)
,[fg, bg]
.
- new constructors:
- update
Plane
methods:set_base_bg
,set_base_fg
&set_base_channels
, now acceptingimpl Into<Channel*>
instead ofChannel
. - impl
Display
forCapabilities
. - bump libnotcurses-sys to
v3.6.2
.
- fix clippy lints.
- minor refactors.
3.0.2 - 2022-06-17
- fix compilation on apple M1.
3.0.1 - 2022-06-12
- fix docs.rs build.
Too many changes.
2.0.0 - 2021-04-20
A clean slate.