Skip to content

Latest commit

 

History

History
 
 

druid-shell

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

druid-shell

druid-shell provides a common interface to the various elements of different platform application frameworks. It was designed to be used by Druid, an experimental UI toolkit.

Project status

UNMAINTAINED

druid-shell v0.8 was forked to form Glazier, which is where some additional development happened. No further development is expected on druid-shell or Glazier. Our recommendation for new apps is to use Winit.

Design

The code in druid-shell can be divided into roughly two categories: the platform agnostic code and types, which are exposed directly, and the platform-specific implementations of these types, which live in per-backend directories in src/backend. The backend-specific code for the current backend is re-exported as druid-shell::backend.

druid-shell does not generally expose backend types directly. Instead, we expose wrapper structs that define the common interface, and then call corresponding methods on the concrete type for the current backend.

Unsafe

Interacting with system APIs is inherently unsafe. One of the goals of druid-shell is to handle all interaction with these APIs, exposing a safe interface to druid and other possible consumers.