mirror of
https://github.com/boostorg/redis.git
synced 2026-01-19 04:42:09 +00:00
examples => example
This commit is contained in:
@@ -7,7 +7,7 @@ codecov:
|
|||||||
|
|
||||||
ignore:
|
ignore:
|
||||||
- "benchmarks/cpp/asio/*"
|
- "benchmarks/cpp/asio/*"
|
||||||
- "examples/*"
|
- "example/*"
|
||||||
- "tests/*"
|
- "tests/*"
|
||||||
- "/usr/*"
|
- "/usr/*"
|
||||||
- "**/boost/*"
|
- "**/boost/*"
|
||||||
|
|||||||
@@ -74,5 +74,5 @@ if(BOOST_REDIS_MAIN_PROJECT AND BUILD_TESTING)
|
|||||||
add_subdirectory(benchmarks)
|
add_subdirectory(benchmarks)
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
add_subdirectory(examples)
|
add_subdirectory(example)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ path-constant this_dir : . ;
|
|||||||
path-constant target_dir : html ;
|
path-constant target_dir : html ;
|
||||||
path-constant redis_root_dir : .. ;
|
path-constant redis_root_dir : .. ;
|
||||||
path-constant include_dir : ../include ;
|
path-constant include_dir : ../include ;
|
||||||
path-constant examples_dir : ../examples ;
|
path-constant examples_dir : ../example ;
|
||||||
path-constant readme : ../README.md ;
|
path-constant readme : ../README.md ;
|
||||||
path-constant layout_file : DoxygenLayout.xml ;
|
path-constant layout_file : DoxygenLayout.xml ;
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ struct user {
|
|||||||
// The type must be described for serialization to work.
|
// The type must be described for serialization to work.
|
||||||
BOOST_DESCRIBE_STRUCT(user, (), (name, age, country))
|
BOOST_DESCRIBE_STRUCT(user, (), (name, age, country))
|
||||||
|
|
||||||
// Boost.Redis customization points (examples/json.hpp)
|
// Boost.Redis customization points (example/json.hpp)
|
||||||
void boost_redis_to_bulk(std::string& to, user const& u)
|
void boost_redis_to_bulk(std::string& to, user const& u)
|
||||||
{ boost::redis::resp3::boost_redis_to_bulk(to, boost::json::serialize(boost::json::value_from(u))); }
|
{ boost::redis::resp3::boost_redis_to_bulk(to, boost::json::serialize(boost::json::value_from(u))); }
|
||||||
|
|
||||||
@@ -27,10 +27,10 @@ using boost::redis::ignore_t;
|
|||||||
using boost::redis::config;
|
using boost::redis::config;
|
||||||
using boost::redis::connection;
|
using boost::redis::connection;
|
||||||
|
|
||||||
// The protobuf type described in examples/person.proto
|
// The protobuf type described in example/person.proto
|
||||||
using tutorial::person;
|
using tutorial::person;
|
||||||
|
|
||||||
// Boost.Redis customization points (examples/protobuf.hpp)
|
// Boost.Redis customization points (example/protobuf.hpp)
|
||||||
namespace tutorial
|
namespace tutorial
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ def _setup_boost(
|
|||||||
# Install Boost dependencies
|
# Install Boost dependencies
|
||||||
_run(["git", "config", "submodule.fetchJobs", "8"])
|
_run(["git", "config", "submodule.fetchJobs", "8"])
|
||||||
_run(["git", "submodule", "update", "-q", "--init", "tools/boostdep"])
|
_run(["git", "submodule", "update", "-q", "--init", "tools/boostdep"])
|
||||||
_run(["python", "tools/boostdep/depinst/depinst.py", "--include", "examples", "redis"])
|
_run(["python", "tools/boostdep/depinst/depinst.py", "--include", "example", "redis"])
|
||||||
|
|
||||||
# Bootstrap
|
# Bootstrap
|
||||||
if _is_windows:
|
if _is_windows:
|
||||||
|
|||||||
Reference in New Issue
Block a user