#dsn #neodes #net-entreprises

neodes_codec

Library to read and write data from DSN files as described in the NeoDes norm

1 unstable release

Uses new Rust 2024

new 0.1.0 Mar 26, 2025

#3 in #dsn

AGPL-3.0-or-later

39KB
968 lines

NeoDes Codec

Rust Library to read DSN files from French administration Net-Entreprises.
This project's purpose is to facilitate the reading of such files and checking its format.
It doesn't check rules linked to the NeoDes norm, though, just the format.

License

This project is released under an AGPL license.
AGPL is a free copyleft license, more details at https://www.gnu.org/licenses/agpl-3.0.html

Purpose

NeoDes files are latin1 (ISO-8859-1) encoded text files which lines respect the following rules

  • The format must be : S01.G23.45.678,'value'
  • Lines must end with \r\n or just \n
  • Lines must be 256 characters or fewer including line returns (\r) and line endings (\n)
  • Value can only contain valid characters
  • Value must contain at least one "validating" character

More information on what a forbidden or validating character is can be found here in the documentation : https://www.net-entreprises.fr/declaration/norme-et-documentation-dsn/

Dependencies

~4.5MB
~151K SLoC