Giter Club home page Giter Club logo

libcosmic's Introduction

LIBCOSMIC

A platform toolkit based on iced which provides the building blocks for developing the future COSMIC desktop environment. Applications and applets alike are equally supported targets of Libcosmic. Applets integrate directly with COSMIC's interface as shell components, which was made possible by the Layer Shell protocol of Wayland.

Building

Libcosmic is written entirely in Rust, with minimal dependence on system libraries. On Pop!_OS, the following dependencies are all that's necessary compile the cosmic library:

sudo apt install cargo cmake just libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config

Some examples are included in the examples directory to to kickstart your COSMIC adventure. To run them, you need to clone the repository with the following commands:

git clone https://github.com/pop-os/libcosmic
cd libcosmic
git submodule update --init --recursive

If you have already cloned the repository, run these to sync with the latest updates:

git fetch origin
git checkout master
git reset --hard origin/master
git submodule update --init --recursive

The examples may then be run by their cargo project names, such as just run cosmic-design-demo.

To create a new COSMIC project, use cargo new {{name_of_project}} to create a new project workspace, edit the Cargo.toml contained within, and add this to begin.

[workspace.dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic"
default-features = false
features = ["wayland", "tokio"]

Cargo Features

Available cargo features to choose from:

  • a11y: Experimental accessibility support.
  • animated-image: Enables animated images from the image crate.
  • debug: Enables addtional debugging features.
  • smol: Uses smol as the preferred async runtime.
    • Conflicts with tokio
  • tokio: Uses tokio as the preferred async runtime.
    • If unset, the default executor defined by iced will be used.
    • Conflicts with smol
  • wayland: Wayland-compatible client windows.
    • Conflicts with winit
  • winit: Cross-platform and X11 client window support
    • Conflicts with wayland
  • wgpu: GPU accelerated rendering with WGPU.
    • By default, softbuffer is used for software rendering.
  • xdg-portal: Enables XDG portal dialog integrations.

Project Showcase

Documentation

Documentation can be found here.

Licence

Licensed under the Mozilla Public License 2.0.

Contact

libcosmic's People

Contributors

wash2 avatar mmstick avatar jackpot51 avatar ids1024 avatar edfloreshz avatar drakulix avatar absolucy avatar ryanabx avatar 13r0ck avatar wiiznokes avatar watchmkr avatar danieleades avatar leb-kuchen avatar elevenhsoft avatar nbdd0121 avatar nabrious0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.