Skip to content

aShell 3.0.0: split into ashell and ashell_safe

Latest

Choose a tag to compare

@charlie5 charlie5 released this 22 Nov 03:17

Shell.Commands.Safe and the spawn server have moved to a second Alire crate, ashell_safe. Programs which only use Unsafe no longer build the server. No Ada source needs to change.

The two crates

  • ashell holds Shell, Shell.Directories, Shell.Commands and Shell.Commands.Unsafe.
  • ashell_safe depends on ashell, and adds Shell.Commands.Safe and its spawn server, ashell_spawn_server.

Both are in the Alire index. They are released together, and ashell_safe needs the ashell of the same minor version.

Upgrading

  • Programs which use Safe with Alire must also depend on the new crate: alr with ashell_safe.
  • Programs which use Safe without Alire must add safe/library to GPR_PROJECT_PATH, and with "ashell_safe"; in their project file.
  • Programs which only use Unsafe need no changes.
  • The spawn server is now built and installed with safe/applet/spawn_server/install_spawn_server.sh. The server itself is unchanged, so one installed from 2.0.x still works.

Changed

  • The ashell crate no longer contains Shell.Commands.Safe or ashell_spawn_server.
  • The Safe sources are now under safe/library, and the spawn server under safe/applet/spawn_server.

See the changelog for earlier releases. If you are upgrading from 1.x, read the 2.0.0 notes there first.