Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .beman-tidy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# This is the config file for beman-tidy, which checks compliance with the Beman Standard (https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md)
# Check documentation for beman-tidy here:
# https://github.com/bemanproject/beman-tidy/blob/main/README.md

disabled_rules:
# None
ignored_paths:
- infra/
1 change: 1 addition & 0 deletions .github/workflows/pre-commit-check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Lint Check (pre-commit)

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Lint Check (pre-commit)

on:
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
Expand Down Expand Up @@ -38,4 +39,11 @@ repos:
name: CMake linting
exclude: ^.*/tests/.*/data/ # Exclude test data directories

# Beman Standard checking via beman-tidy
- repo: https://github.com/bemanproject/beman-tidy
rev: v0.5.2
hooks:
- id: beman-tidy
args: [".", "--verbose"]

exclude: 'infra/'
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if(LINUX)
option(BEMAN_NET_WITH_URING "Enable liburing io context" OFF)
endif()

# Match CMake presets. MSVC CI enables modules via Ninja by default, which
# triggers execution C7760 in product_type.cppm (pre-existing on main).
set(BEMAN_USE_MODULES OFF CACHE BOOL "Build CXX modules" FORCE)

include(FetchContent)

FetchContent_Declare(
Expand All @@ -41,6 +45,7 @@ set(POSTGRESROOT /Library/PostgreSQL/18)
check_library_exists(pq PQsocket ${POSTGRESROOT}/lib HAS_POSTGRES)

add_subdirectory(src/beman/net)
add_library(beman::net ALIAS beman.net)

#===============================================================================
# NOTE: this must be done before tests! CK
Expand Down
15 changes: 0 additions & 15 deletions LICENSE.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
==============================================================================
The Beman Project is under the Apache License v2.0 with LLVM Exceptions:
==============================================================================

Apache License
Version 2.0, January 2004
Expand Down Expand Up @@ -220,15 +217,3 @@ conflicts with the conditions of the GPLv2, you may retroactively and
prospectively choose to deem waived or otherwise exclude such Section(s) of
the License, but only in their entirety and only with respect to the Combined
Software.

==============================================================================
Software from third parties included in the Beman Project:
==============================================================================
The Beman Project contains third party software which is under different license
terms. All such code will be identified clearly using at least one of two
mechanisms:
1) It will be in a separate directory tree with its own `LICENSE.txt` or
`LICENSE` file at the top containing the specific license and restrictions
which apply to that software, or
2) It will contain specific license and restriction terms at the top of every
file.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# beman.net: Senders For Network Operations

<img src="https://github.com/bemanproject/beman/blob/main/images/logos/beman_logo-beman_library_under_development.png" style="width:5%; height:auto;">

![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)
![Target Standard](https://github.com/bemanproject/beman/blob/main/images/badges/cpp29.svg)
<!-- markdownlint-disable line-length -->
[![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#the-beman-library-maturity-model)
![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp29.svg)
[![Coverage](https://coveralls.io/repos/github/bemanproject/net/badge.svg?branch=main)](https://coveralls.io/github/bemanproject/net?branch=main)
<!-- markdownlint-restore -->

`beman.net` provides senders for asynchronous network operations.
It is based on [P2762R2](https://wg21.link/P2762R2). Both the proposal
Expand All @@ -21,7 +21,11 @@ possible use various libraries for asynchronous operations like

**Implements**: [Sender/Receiver Interface for Networking (P2762)](https://wg21.link/P2762)

**Status**: [Under development and not yet ready for production use.](https://github.com/bemanproject/beman/blob/main/docs/BEMAN_LIBRARY_MATURITY_MODEL.md#under-development-and-not-yet-ready-for-production-use)
**Status**: [Under development and not yet ready for production use.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#under-development-and-not-yet-ready-for-production-use)

## License

beman.net is licensed under the Apache License v2.0 with LLVM Exceptions.

## Help Welcome!

Expand Down
3 changes: 3 additions & 0 deletions src/beman/net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
add_library(${PROJECT_NAME}_headers INTERFACE)
add_library(beman::net_headers ALIAS ${PROJECT_NAME}_headers)

add_library(beman.net INTERFACE)
target_link_libraries(beman.net INTERFACE ${PROJECT_NAME}_headers)

target_sources(
${PROJECT_NAME}_headers
# XXX PRIVATE net.cpp
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# cmake-format: on

list(APPEND tests sorted_list.pass)
list(APPEND tests sorted_list.test)

foreach(test ${tests})
add_executable(${test} ${test}.cpp)
Expand Down
Loading