Skip to content

August2111/libcommon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,294 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libcommon

libcommon is a collection of reusable C++ code shared by many C++ projects at CM4all GmbH.

The project was created when code duplication between C++ projects got out of hand. Commonly used code was moved into this library, instead of keeping several copies in sync.

The library is meant to be included in other projects as a git submodule. It is a lively and volatile project, which makes it hard to turn it into a shared library. Retaining ABI stability (which is very difficult with C++ anyway) would be too hard at this stage, and not worthwile.

Building libcommon

You need:

To build it, type:

meson . build
ninja -C build

That produces several static libraries.

Contents

Each directory below src contains a sub-library:

  • util: generic utilities
  • co: C++20 Coroutines
  • time: dealing with date and time
  • http: HTTP protocol definitions and helpers
  • adata: data structures using our pool allocator
  • system: operating system utilities
  • io: file I/O utilities
  • io/uring: liburing C++ wrapper
  • json: standalone boost::json
  • net: networking/socket utilities
  • event: a non-blocking I/O event loop
  • lua: Lua C++ wrappers
  • curl: libcurl C++ wrappers
  • pcre: PCRE C++ wrappers
  • pg: libpq C++ wrappers
  • odbus: libdbus C++ wrappers
  • sodium: libsodium C++ wrappers
  • ssl: OpenSSL C++ wrappers
  • zlib: zlib C++ wrappers
  • translation: implementation of the CM4all translation protocol
  • spawn: a process spawner
  • stock: manage stocks of reusable objects (e.g. for connection pooling)

About

Library of reusable C++ code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.5%
  • C 1.5%
  • Meson 1.0%