couchbase 3.5.4 → 3.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/CMakeLists.txt +8 -6
- data/ext/cache/cpm/{CPM_0.38.6.cmake → CPM_0.40.5.cmake} +152 -22
- data/ext/cache/extconf_include.rb +3 -3
- data/ext/cache/mozilla-ca-bundle.crt +32 -87
- data/ext/cache/mozilla-ca-bundle.sha256 +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/CMakeLists.txt +30 -6
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/utils.cmake +13 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async_logger-inl.h +5 -7
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/mpmc_blocking_q.h +3 -3
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/os-inl.h +3 -3
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/thread_pool-inl.h +3 -8
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/thread_pool.h +3 -14
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/base.h +47 -31
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/format-inl.h +32 -8
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/format.h +22 -14
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/ranges.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/mdc.h +4 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/pattern_formatter-inl.h +16 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ansicolor_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/base_sink.h +4 -4
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/callback_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/daily_file_sink.h +3 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/hourly_file_sink.h +2 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/msvc_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/syslog_sink.h +3 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +9 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/version.h +2 -2
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/format.cc → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/src/bundled_fmtlib_format.cpp} +10 -5
- data/ext/couchbase/CMakeLists.txt +3 -2
- data/ext/couchbase/cmake/APKBUILD.in +54 -0
- data/ext/couchbase/cmake/Backtrace.cmake +3 -1
- data/ext/couchbase/cmake/CPM.cmake +1 -1
- data/ext/couchbase/cmake/CompilerWarnings.cmake +0 -5
- data/ext/couchbase/cmake/Packaging.cmake +174 -11
- data/ext/couchbase/cmake/RPath.cmake +10 -0
- data/ext/couchbase/cmake/Testing.cmake +0 -4
- data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +7 -26
- data/ext/couchbase/cmake/VersionInfo.cmake +4 -0
- data/ext/couchbase/cmake/build_version.hxx.in +1 -0
- data/ext/couchbase/cmake/couchbase-cxx-client.spec.in +2 -2
- data/ext/couchbase/cmake/couchbase_cxx_client.pc.in +2 -2
- data/ext/couchbase/core/agent_config.cxx +1 -1
- data/ext/couchbase/core/agent_group_config.cxx +1 -1
- data/ext/couchbase/core/bucket.cxx +9 -9
- data/ext/couchbase/core/cluster.cxx +0 -2
- data/ext/couchbase/core/cluster_agent_config.cxx +1 -1
- data/ext/couchbase/core/collections_component.cxx +1 -1
- data/ext/couchbase/core/columnar/agent_config.cxx +2 -2
- data/ext/couchbase/core/columnar/error.hxx +0 -1
- data/ext/couchbase/core/columnar/query_component.cxx +2 -2
- data/ext/couchbase/core/config_profiles.cxx +1 -1
- data/ext/couchbase/core/core_sdk_shim.cxx +1 -1
- data/ext/couchbase/core/crud_component.cxx +1 -1
- data/ext/couchbase/core/design_document_namespace_fmt.hxx +1 -1
- data/ext/couchbase/core/diagnostics_fmt.hxx +1 -1
- data/ext/couchbase/core/document_id.cxx +1 -1
- data/ext/couchbase/core/document_id_fmt.hxx +1 -1
- data/ext/couchbase/core/error_context/analytics_json.hxx +3 -1
- data/ext/couchbase/core/error_context/key_value_json.hxx +1 -1
- data/ext/couchbase/core/error_context/query_public_json.hxx +1 -1
- data/ext/couchbase/core/error_context/subdocument_json.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_error_map_attribute.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_extended_error_info.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_status_code.hxx +1 -1
- data/ext/couchbase/core/http_component.cxx +3 -3
- data/ext/couchbase/core/impl/analytics.cxx +1 -0
- data/ext/couchbase/core/impl/best_effort_retry_strategy.cxx +1 -1
- data/ext/couchbase/core/impl/collection.cxx +28 -4
- data/ext/couchbase/core/impl/date_range.cxx +2 -2
- data/ext/couchbase/core/impl/date_range_query.cxx +2 -2
- data/ext/couchbase/core/impl/dns_srv_tracker.cxx +1 -1
- data/ext/couchbase/core/impl/error.cxx +27 -4
- data/ext/couchbase/core/impl/expiry.cxx +2 -2
- data/ext/couchbase/core/impl/fail_fast_retry_strategy.cxx +1 -2
- data/ext/couchbase/core/impl/get_replica.hxx +2 -0
- data/ext/couchbase/core/impl/key_value_error_context.cxx +6 -4
- data/ext/couchbase/core/impl/lookup_in_replica.hxx +2 -0
- data/ext/couchbase/core/impl/numeric_range.cxx +1 -1
- data/ext/couchbase/core/impl/observe_seqno.hxx +2 -0
- data/ext/couchbase/core/impl/query.cxx +1 -0
- data/ext/couchbase/core/impl/query_error_context.cxx +3 -2
- data/ext/couchbase/core/impl/scope.cxx +5 -6
- data/ext/couchbase/core/impl/search.cxx +3 -1
- data/ext/couchbase/core/io/config_tracker.cxx +1 -1
- data/ext/couchbase/core/io/dns_client.cxx +23 -8
- data/ext/couchbase/core/io/http_command.hxx +2 -2
- data/ext/couchbase/core/io/http_parser.cxx +1 -1
- data/ext/couchbase/core/io/http_session.cxx +4 -0
- data/ext/couchbase/core/io/http_session.hxx +4 -2
- data/ext/couchbase/core/io/mcbp_command.hxx +2 -2
- data/ext/couchbase/core/key_value_config.cxx +2 -2
- data/ext/couchbase/core/logger/logger.hxx +1 -1
- data/ext/couchbase/core/management/rbac_fmt.hxx +1 -1
- data/ext/couchbase/core/mcbp/operation_queue.cxx +1 -1
- data/ext/couchbase/core/mcbp/packet.cxx +1 -1
- data/ext/couchbase/core/meta/features.hxx +11 -0
- data/ext/couchbase/core/meta/version.cxx +48 -7
- data/ext/couchbase/core/operations/document_analytics.cxx +23 -17
- data/ext/couchbase/core/operations/document_analytics.hxx +1 -0
- data/ext/couchbase/core/operations/document_append.hxx +2 -0
- data/ext/couchbase/core/operations/document_decrement.hxx +2 -0
- data/ext/couchbase/core/operations/document_exists.hxx +2 -0
- data/ext/couchbase/core/operations/document_get.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_all_replicas.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_and_lock.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_and_touch.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_any_replica.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_projected.hxx +2 -0
- data/ext/couchbase/core/operations/document_increment.hxx +2 -0
- data/ext/couchbase/core/operations/document_insert.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in_any_replica.hxx +2 -0
- data/ext/couchbase/core/operations/document_mutate_in.hxx +2 -0
- data/ext/couchbase/core/operations/document_prepend.hxx +2 -0
- data/ext/couchbase/core/operations/document_query.hxx +1 -0
- data/ext/couchbase/core/operations/document_remove.hxx +2 -0
- data/ext/couchbase/core/operations/document_replace.hxx +2 -0
- data/ext/couchbase/core/operations/document_search.hxx +1 -0
- data/ext/couchbase/core/operations/document_touch.hxx +2 -0
- data/ext/couchbase/core/operations/document_unlock.hxx +2 -0
- data/ext/couchbase/core/operations/document_upsert.hxx +2 -0
- data/ext/couchbase/core/operations/document_view.hxx +1 -0
- data/ext/couchbase/core/operations/http_noop.hxx +2 -0
- data/ext/couchbase/core/operations/management/CMakeLists.txt +0 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_index_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_index_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_connect.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_connect.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_get_all.cxx +24 -16
- data/ext/couchbase/core/operations/management/analytics_link_get_all.hxx +4 -3
- data/ext/couchbase/core/operations/management/analytics_link_replace.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_utils.hxx +4 -3
- data/ext/couchbase/core/operations/management/bucket_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_describe.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_describe.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_flush.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_flush.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_update.hxx +1 -0
- data/ext/couchbase/core/operations/management/change_password.cxx +1 -1
- data/ext/couchbase/core/operations/management/change_password.hxx +1 -0
- data/ext/couchbase/core/operations/management/cluster_describe.hxx +1 -0
- data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.hxx +1 -0
- data/ext/couchbase/core/operations/management/collection_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/collection_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/collection_update.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_update.hxx +2 -0
- data/ext/couchbase/core/operations/management/collections_manifest_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_deploy_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_deploy_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_drop_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_drop_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_all_functions.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_get_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_status.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_pause_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_pause_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_resume_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_resume_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_upsert_function.cxx +1 -2
- data/ext/couchbase/core/operations/management/eventing_upsert_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/freeform.hxx +2 -0
- data/ext/couchbase/core/operations/management/group_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/group_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/group_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_build.hxx +7 -5
- data/ext/couchbase/core/operations/management/query_index_build_deferred.hxx +3 -0
- data/ext/couchbase/core/operations/management/query_index_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/query_index_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/query_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/query_index_get_all_deferred.hxx +3 -0
- data/ext/couchbase/core/operations/management/role_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_get_stats.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_analyze_document.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_analyze_document.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_ingest.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_ingest.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_query.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_query.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_get_stats.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_stats.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_upsert.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_upsert.cxx +3 -3
- data/ext/couchbase/core/operations/management/user_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/view_index_upsert.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_upsert.hxx +1 -0
- data/ext/couchbase/core/origin.cxx +3 -2
- data/ext/couchbase/core/platform/base64.h +8 -8
- data/ext/couchbase/core/protocol/client_opcode_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/client_response.hxx +1 -1
- data/ext/couchbase/core/protocol/frame_info_id_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/hello_feature_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/magic_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/server_opcode_fmt.hxx +1 -1
- data/ext/couchbase/core/query_context.hxx +7 -6
- data/ext/couchbase/core/retry_orchestrator.cxx +1 -1
- data/ext/couchbase/core/sasl/CMakeLists.txt +0 -1
- data/ext/couchbase/core/sasl/error_fmt.h +1 -1
- data/ext/couchbase/core/seed_config.cxx +2 -2
- data/ext/couchbase/core/service_type_fmt.hxx +1 -1
- data/ext/couchbase/core/topology/capabilities_fmt.hxx +1 -1
- data/ext/couchbase/core/topology/collections_manifest_fmt.hxx +2 -1
- data/ext/couchbase/core/topology/configuration_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/async_attempt_context.cxx +1 -1
- data/ext/couchbase/core/transactions/async_attempt_context.hxx +9 -22
- data/ext/couchbase/core/transactions/attempt_context.cxx +1 -1
- data/ext/couchbase/core/transactions/attempt_context.hxx +6 -33
- data/ext/couchbase/core/transactions/attempt_context_impl.cxx +41 -41
- data/ext/couchbase/core/transactions/attempt_context_impl.hxx +15 -16
- data/ext/couchbase/core/transactions/exceptions_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/atr_cleanup_entry.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/client_record.hxx +4 -3
- data/ext/couchbase/core/transactions/internal/doc_record_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/exceptions_internal.hxx +0 -2
- data/ext/couchbase/core/transactions/internal/exceptions_internal_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/logging.hxx +2 -0
- data/ext/couchbase/core/transactions/internal/transaction_context.hxx +3 -0
- data/ext/couchbase/core/transactions/result_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/transaction_context.cxx +12 -2
- data/ext/couchbase/core/transactions/transaction_get_result.hxx +0 -20
- data/ext/couchbase/core/transactions/transaction_links.hxx +1 -1
- data/ext/couchbase/core/utils/join_strings.hxx +2 -2
- data/ext/couchbase/core/utils/keyspace.hxx +2 -1
- data/ext/couchbase/core/utils/url_codec.cxx +1 -1
- data/ext/couchbase/couchbase/common_options.hxx +16 -1
- data/ext/couchbase/couchbase/fmt/analytics_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/analytics_status.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/cas.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/durability_level.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/error.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/error_context.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/mutation_token.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_profile.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_status.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/retry_reason.hxx +5 -1
- data/ext/couchbase/couchbase/fmt/search_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/tls_verify_mode.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/transaction_keyspace.hxx +0 -2
- data/ext/couchbase/couchbase/metrics/otel_meter.hxx +16 -20
- data/ext/extconf.rb +1 -0
- data/ext/rcb_analytics.cxx +7 -7
- data/ext/rcb_backend.cxx +6 -1
- data/ext/rcb_buckets.cxx +1 -1
- data/ext/rcb_collections.cxx +1 -1
- data/ext/rcb_crud.cxx +51 -30
- data/ext/rcb_diagnostics.cxx +1 -1
- data/ext/rcb_exceptions.cxx +3 -2
- data/ext/rcb_extras.cxx +1 -1
- data/ext/rcb_range_scan.cxx +1 -1
- data/ext/rcb_search.cxx +1 -1
- data/ext/rcb_users.cxx +2 -2
- data/ext/rcb_utils.hxx +32 -0
- data/lib/couchbase/logger.rb +3 -3
- data/lib/couchbase/options.rb +48 -0
- data/lib/couchbase/version.rb +1 -1
- metadata +131 -153
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/CMakeLists.txt +0 -520
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/ChangeLog.md +0 -2598
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/LICENSE +0 -27
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/README.md +0 -484
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/fmt.cc +0 -135
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/os.cc +0 -403
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/FindSetEnv.cmake +0 -7
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/JoinPaths.cmake +0 -26
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/fmt-config.cmake.in +0 -7
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/fmt.pc.in +0 -11
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/args.h +0 -235
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/chrono.h +0 -2240
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/color.h +0 -643
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/compile.h +0 -535
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/core.h +0 -2969
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/format-inl.h +0 -1678
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/format.h +0 -4535
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/os.h +0 -455
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/ostream.h +0 -245
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/printf.h +0 -675
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/ranges.h +0 -738
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/std.h +0 -537
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/xchar.h +0 -259
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/src/bundled_fmtlib_format.cpp +0 -46
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/LICENSE +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/ide.cmake +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/pch.h.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlog.pc.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlogCPack.cmake +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlogConfig.cmake.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/version.rc.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async_logger.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/argv.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/env.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/helpers-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/helpers.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/common-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/common.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/backtracer-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/backtracer.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/circular_q.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/console_globals.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/file_helper-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/file_helper.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/fmt_helper.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg_buffer-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg_buffer.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/null_mutex.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/os.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/periodic_worker-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/periodic_worker.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/registry-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/registry.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/synchronous_factory.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/tcp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/tcp_client.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/udp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/udp_client.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/windows_include.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bin_to_hex.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/args.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/chrono.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/color.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/compile.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/core.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bundled/fmt.license.rst +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bundled/locale.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/os.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/ostream.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/printf.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/std.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/xchar.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/chrono.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/compile.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/fmt.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/ostr.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/ranges.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/std.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/xchar.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/formatter.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fwd.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/logger-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/logger.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/pattern_formatter.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/android_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/base_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/basic_file_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/dist_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/dup_filter_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/kafka_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/mongo_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/null_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ostream_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/qt_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ringbuffer_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/rotating_file_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_color_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/systemd_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/tcp_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/udp_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/win_eventlog_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/wincolor_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/spdlog-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/spdlog.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/stopwatch.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/tweakme.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/async.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/cfg.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/color_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/file_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/spdlog.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/stdout_sinks.cpp +0 -0
@@ -1,403 +0,0 @@
|
|
1
|
-
// Formatting library for C++ - optional OS-specific functionality
|
2
|
-
//
|
3
|
-
// Copyright (c) 2012 - 2016, Victor Zverovich
|
4
|
-
// All rights reserved.
|
5
|
-
//
|
6
|
-
// For the license information refer to format.h.
|
7
|
-
|
8
|
-
// Disable bogus MSVC warnings.
|
9
|
-
#if !defined(_CRT_SECURE_NO_WARNINGS) && defined(_MSC_VER)
|
10
|
-
# define _CRT_SECURE_NO_WARNINGS
|
11
|
-
#endif
|
12
|
-
|
13
|
-
#include "fmt/os.h"
|
14
|
-
|
15
|
-
#ifndef FMT_MODULE
|
16
|
-
# include <climits>
|
17
|
-
|
18
|
-
# if FMT_USE_FCNTL
|
19
|
-
# include <sys/stat.h>
|
20
|
-
# include <sys/types.h>
|
21
|
-
|
22
|
-
# ifdef _WRS_KERNEL // VxWorks7 kernel
|
23
|
-
# include <ioLib.h> // getpagesize
|
24
|
-
# endif
|
25
|
-
|
26
|
-
# ifndef _WIN32
|
27
|
-
# include <unistd.h>
|
28
|
-
# else
|
29
|
-
# ifndef WIN32_LEAN_AND_MEAN
|
30
|
-
# define WIN32_LEAN_AND_MEAN
|
31
|
-
# endif
|
32
|
-
# include <io.h>
|
33
|
-
# endif // _WIN32
|
34
|
-
# endif // FMT_USE_FCNTL
|
35
|
-
|
36
|
-
# ifdef _WIN32
|
37
|
-
# include <windows.h>
|
38
|
-
# endif
|
39
|
-
#endif
|
40
|
-
|
41
|
-
#ifdef _WIN32
|
42
|
-
# ifndef S_IRUSR
|
43
|
-
# define S_IRUSR _S_IREAD
|
44
|
-
# endif
|
45
|
-
# ifndef S_IWUSR
|
46
|
-
# define S_IWUSR _S_IWRITE
|
47
|
-
# endif
|
48
|
-
# ifndef S_IRGRP
|
49
|
-
# define S_IRGRP 0
|
50
|
-
# endif
|
51
|
-
# ifndef S_IWGRP
|
52
|
-
# define S_IWGRP 0
|
53
|
-
# endif
|
54
|
-
# ifndef S_IROTH
|
55
|
-
# define S_IROTH 0
|
56
|
-
# endif
|
57
|
-
# ifndef S_IWOTH
|
58
|
-
# define S_IWOTH 0
|
59
|
-
# endif
|
60
|
-
#endif
|
61
|
-
|
62
|
-
namespace {
|
63
|
-
#ifdef _WIN32
|
64
|
-
// Return type of read and write functions.
|
65
|
-
using rwresult = int;
|
66
|
-
|
67
|
-
// On Windows the count argument to read and write is unsigned, so convert
|
68
|
-
// it from size_t preventing integer overflow.
|
69
|
-
inline unsigned convert_rwcount(std::size_t count) {
|
70
|
-
return count <= UINT_MAX ? static_cast<unsigned>(count) : UINT_MAX;
|
71
|
-
}
|
72
|
-
#elif FMT_USE_FCNTL
|
73
|
-
// Return type of read and write functions.
|
74
|
-
using rwresult = ssize_t;
|
75
|
-
|
76
|
-
inline std::size_t convert_rwcount(std::size_t count) { return count; }
|
77
|
-
#endif
|
78
|
-
} // namespace
|
79
|
-
|
80
|
-
FMT_BEGIN_NAMESPACE
|
81
|
-
|
82
|
-
#ifdef _WIN32
|
83
|
-
namespace detail {
|
84
|
-
|
85
|
-
class system_message {
|
86
|
-
system_message(const system_message&) = delete;
|
87
|
-
void operator=(const system_message&) = delete;
|
88
|
-
|
89
|
-
unsigned long result_;
|
90
|
-
wchar_t* message_;
|
91
|
-
|
92
|
-
static bool is_whitespace(wchar_t c) noexcept {
|
93
|
-
return c == L' ' || c == L'\n' || c == L'\r' || c == L'\t' || c == L'\0';
|
94
|
-
}
|
95
|
-
|
96
|
-
public:
|
97
|
-
explicit system_message(unsigned long error_code)
|
98
|
-
: result_(0), message_(nullptr) {
|
99
|
-
result_ = FormatMessageW(
|
100
|
-
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
|
101
|
-
FORMAT_MESSAGE_IGNORE_INSERTS,
|
102
|
-
nullptr, error_code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
103
|
-
reinterpret_cast<wchar_t*>(&message_), 0, nullptr);
|
104
|
-
if (result_ != 0) {
|
105
|
-
while (result_ != 0 && is_whitespace(message_[result_ - 1])) {
|
106
|
-
--result_;
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
110
|
-
~system_message() { LocalFree(message_); }
|
111
|
-
explicit operator bool() const noexcept { return result_ != 0; }
|
112
|
-
operator basic_string_view<wchar_t>() const noexcept {
|
113
|
-
return basic_string_view<wchar_t>(message_, result_);
|
114
|
-
}
|
115
|
-
};
|
116
|
-
|
117
|
-
class utf8_system_category final : public std::error_category {
|
118
|
-
public:
|
119
|
-
const char* name() const noexcept override { return "system"; }
|
120
|
-
std::string message(int error_code) const override {
|
121
|
-
auto&& msg = system_message(error_code);
|
122
|
-
if (msg) {
|
123
|
-
auto utf8_message = to_utf8<wchar_t>();
|
124
|
-
if (utf8_message.convert(msg)) {
|
125
|
-
return utf8_message.str();
|
126
|
-
}
|
127
|
-
}
|
128
|
-
return "unknown error";
|
129
|
-
}
|
130
|
-
};
|
131
|
-
|
132
|
-
} // namespace detail
|
133
|
-
|
134
|
-
FMT_API const std::error_category& system_category() noexcept {
|
135
|
-
static const detail::utf8_system_category category;
|
136
|
-
return category;
|
137
|
-
}
|
138
|
-
|
139
|
-
std::system_error vwindows_error(int err_code, string_view format_str,
|
140
|
-
format_args args) {
|
141
|
-
auto ec = std::error_code(err_code, system_category());
|
142
|
-
return std::system_error(ec, vformat(format_str, args));
|
143
|
-
}
|
144
|
-
|
145
|
-
void detail::format_windows_error(detail::buffer<char>& out, int error_code,
|
146
|
-
const char* message) noexcept {
|
147
|
-
FMT_TRY {
|
148
|
-
auto&& msg = system_message(error_code);
|
149
|
-
if (msg) {
|
150
|
-
auto utf8_message = to_utf8<wchar_t>();
|
151
|
-
if (utf8_message.convert(msg)) {
|
152
|
-
fmt::format_to(appender(out), FMT_STRING("{}: {}"), message,
|
153
|
-
string_view(utf8_message));
|
154
|
-
return;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
}
|
158
|
-
FMT_CATCH(...) {}
|
159
|
-
format_error_code(out, error_code, message);
|
160
|
-
}
|
161
|
-
|
162
|
-
void report_windows_error(int error_code, const char* message) noexcept {
|
163
|
-
report_error(detail::format_windows_error, error_code, message);
|
164
|
-
}
|
165
|
-
#endif // _WIN32
|
166
|
-
|
167
|
-
buffered_file::~buffered_file() noexcept {
|
168
|
-
if (file_ && FMT_SYSTEM(fclose(file_)) != 0)
|
169
|
-
report_system_error(errno, "cannot close file");
|
170
|
-
}
|
171
|
-
|
172
|
-
buffered_file::buffered_file(cstring_view filename, cstring_view mode) {
|
173
|
-
FMT_RETRY_VAL(file_, FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())),
|
174
|
-
nullptr);
|
175
|
-
if (!file_)
|
176
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot open file {}"),
|
177
|
-
filename.c_str()));
|
178
|
-
}
|
179
|
-
|
180
|
-
void buffered_file::close() {
|
181
|
-
if (!file_) return;
|
182
|
-
int result = FMT_SYSTEM(fclose(file_));
|
183
|
-
file_ = nullptr;
|
184
|
-
if (result != 0)
|
185
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot close file")));
|
186
|
-
}
|
187
|
-
|
188
|
-
int buffered_file::descriptor() const {
|
189
|
-
#ifdef FMT_HAS_SYSTEM
|
190
|
-
// fileno is a macro on OpenBSD.
|
191
|
-
# ifdef fileno
|
192
|
-
# undef fileno
|
193
|
-
# endif
|
194
|
-
int fd = FMT_POSIX_CALL(fileno(file_));
|
195
|
-
#elif defined(_WIN32)
|
196
|
-
int fd = _fileno(file_);
|
197
|
-
#else
|
198
|
-
int fd = fileno(file_);
|
199
|
-
#endif
|
200
|
-
if (fd == -1)
|
201
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot get file descriptor")));
|
202
|
-
return fd;
|
203
|
-
}
|
204
|
-
|
205
|
-
#if FMT_USE_FCNTL
|
206
|
-
# ifdef _WIN32
|
207
|
-
using mode_t = int;
|
208
|
-
# endif
|
209
|
-
|
210
|
-
constexpr mode_t default_open_mode =
|
211
|
-
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
|
212
|
-
|
213
|
-
file::file(cstring_view path, int oflag) {
|
214
|
-
# if defined(_WIN32) && !defined(__MINGW32__)
|
215
|
-
fd_ = -1;
|
216
|
-
auto converted = detail::utf8_to_utf16(string_view(path.c_str()));
|
217
|
-
*this = file::open_windows_file(converted.c_str(), oflag);
|
218
|
-
# else
|
219
|
-
FMT_RETRY(fd_, FMT_POSIX_CALL(open(path.c_str(), oflag, default_open_mode)));
|
220
|
-
if (fd_ == -1)
|
221
|
-
FMT_THROW(
|
222
|
-
system_error(errno, FMT_STRING("cannot open file {}"), path.c_str()));
|
223
|
-
# endif
|
224
|
-
}
|
225
|
-
|
226
|
-
file::~file() noexcept {
|
227
|
-
// Don't retry close in case of EINTR!
|
228
|
-
// See http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-09/3000.html
|
229
|
-
if (fd_ != -1 && FMT_POSIX_CALL(close(fd_)) != 0)
|
230
|
-
report_system_error(errno, "cannot close file");
|
231
|
-
}
|
232
|
-
|
233
|
-
void file::close() {
|
234
|
-
if (fd_ == -1) return;
|
235
|
-
// Don't retry close in case of EINTR!
|
236
|
-
// See http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-09/3000.html
|
237
|
-
int result = FMT_POSIX_CALL(close(fd_));
|
238
|
-
fd_ = -1;
|
239
|
-
if (result != 0)
|
240
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot close file")));
|
241
|
-
}
|
242
|
-
|
243
|
-
long long file::size() const {
|
244
|
-
# ifdef _WIN32
|
245
|
-
// Use GetFileSize instead of GetFileSizeEx for the case when _WIN32_WINNT
|
246
|
-
// is less than 0x0500 as is the case with some default MinGW builds.
|
247
|
-
// Both functions support large file sizes.
|
248
|
-
DWORD size_upper = 0;
|
249
|
-
HANDLE handle = reinterpret_cast<HANDLE>(_get_osfhandle(fd_));
|
250
|
-
DWORD size_lower = FMT_SYSTEM(GetFileSize(handle, &size_upper));
|
251
|
-
if (size_lower == INVALID_FILE_SIZE) {
|
252
|
-
DWORD error = GetLastError();
|
253
|
-
if (error != NO_ERROR)
|
254
|
-
FMT_THROW(windows_error(GetLastError(), "cannot get file size"));
|
255
|
-
}
|
256
|
-
unsigned long long long_size = size_upper;
|
257
|
-
return (long_size << sizeof(DWORD) * CHAR_BIT) | size_lower;
|
258
|
-
# else
|
259
|
-
using Stat = struct stat;
|
260
|
-
Stat file_stat = Stat();
|
261
|
-
if (FMT_POSIX_CALL(fstat(fd_, &file_stat)) == -1)
|
262
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot get file attributes")));
|
263
|
-
static_assert(sizeof(long long) >= sizeof(file_stat.st_size),
|
264
|
-
"return type of file::size is not large enough");
|
265
|
-
return file_stat.st_size;
|
266
|
-
# endif
|
267
|
-
}
|
268
|
-
|
269
|
-
std::size_t file::read(void* buffer, std::size_t count) {
|
270
|
-
rwresult result = 0;
|
271
|
-
FMT_RETRY(result, FMT_POSIX_CALL(read(fd_, buffer, convert_rwcount(count))));
|
272
|
-
if (result < 0)
|
273
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot read from file")));
|
274
|
-
return detail::to_unsigned(result);
|
275
|
-
}
|
276
|
-
|
277
|
-
std::size_t file::write(const void* buffer, std::size_t count) {
|
278
|
-
rwresult result = 0;
|
279
|
-
FMT_RETRY(result, FMT_POSIX_CALL(write(fd_, buffer, convert_rwcount(count))));
|
280
|
-
if (result < 0)
|
281
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot write to file")));
|
282
|
-
return detail::to_unsigned(result);
|
283
|
-
}
|
284
|
-
|
285
|
-
file file::dup(int fd) {
|
286
|
-
// Don't retry as dup doesn't return EINTR.
|
287
|
-
// http://pubs.opengroup.org/onlinepubs/009695399/functions/dup.html
|
288
|
-
int new_fd = FMT_POSIX_CALL(dup(fd));
|
289
|
-
if (new_fd == -1)
|
290
|
-
FMT_THROW(system_error(
|
291
|
-
errno, FMT_STRING("cannot duplicate file descriptor {}"), fd));
|
292
|
-
return file(new_fd);
|
293
|
-
}
|
294
|
-
|
295
|
-
void file::dup2(int fd) {
|
296
|
-
int result = 0;
|
297
|
-
FMT_RETRY(result, FMT_POSIX_CALL(dup2(fd_, fd)));
|
298
|
-
if (result == -1) {
|
299
|
-
FMT_THROW(system_error(
|
300
|
-
errno, FMT_STRING("cannot duplicate file descriptor {} to {}"), fd_,
|
301
|
-
fd));
|
302
|
-
}
|
303
|
-
}
|
304
|
-
|
305
|
-
void file::dup2(int fd, std::error_code& ec) noexcept {
|
306
|
-
int result = 0;
|
307
|
-
FMT_RETRY(result, FMT_POSIX_CALL(dup2(fd_, fd)));
|
308
|
-
if (result == -1) ec = std::error_code(errno, std::generic_category());
|
309
|
-
}
|
310
|
-
|
311
|
-
buffered_file file::fdopen(const char* mode) {
|
312
|
-
// Don't retry as fdopen doesn't return EINTR.
|
313
|
-
# if defined(__MINGW32__) && defined(_POSIX_)
|
314
|
-
FILE* f = ::fdopen(fd_, mode);
|
315
|
-
# else
|
316
|
-
FILE* f = FMT_POSIX_CALL(fdopen(fd_, mode));
|
317
|
-
# endif
|
318
|
-
if (!f) {
|
319
|
-
FMT_THROW(system_error(
|
320
|
-
errno, FMT_STRING("cannot associate stream with file descriptor")));
|
321
|
-
}
|
322
|
-
buffered_file bf(f);
|
323
|
-
fd_ = -1;
|
324
|
-
return bf;
|
325
|
-
}
|
326
|
-
|
327
|
-
# if defined(_WIN32) && !defined(__MINGW32__)
|
328
|
-
file file::open_windows_file(wcstring_view path, int oflag) {
|
329
|
-
int fd = -1;
|
330
|
-
auto err = _wsopen_s(&fd, path.c_str(), oflag, _SH_DENYNO, default_open_mode);
|
331
|
-
if (fd == -1) {
|
332
|
-
FMT_THROW(system_error(err, FMT_STRING("cannot open file {}"),
|
333
|
-
detail::to_utf8<wchar_t>(path.c_str()).c_str()));
|
334
|
-
}
|
335
|
-
return file(fd);
|
336
|
-
}
|
337
|
-
# endif
|
338
|
-
|
339
|
-
pipe::pipe() {
|
340
|
-
int fds[2] = {};
|
341
|
-
# ifdef _WIN32
|
342
|
-
// Make the default pipe capacity same as on Linux 2.6.11+.
|
343
|
-
enum { DEFAULT_CAPACITY = 65536 };
|
344
|
-
int result = FMT_POSIX_CALL(pipe(fds, DEFAULT_CAPACITY, _O_BINARY));
|
345
|
-
# else
|
346
|
-
// Don't retry as the pipe function doesn't return EINTR.
|
347
|
-
// http://pubs.opengroup.org/onlinepubs/009696799/functions/pipe.html
|
348
|
-
int result = FMT_POSIX_CALL(pipe(fds));
|
349
|
-
# endif
|
350
|
-
if (result != 0)
|
351
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot create pipe")));
|
352
|
-
// The following assignments don't throw.
|
353
|
-
read_end = file(fds[0]);
|
354
|
-
write_end = file(fds[1]);
|
355
|
-
}
|
356
|
-
|
357
|
-
# if !defined(__MSDOS__)
|
358
|
-
long getpagesize() {
|
359
|
-
# ifdef _WIN32
|
360
|
-
SYSTEM_INFO si;
|
361
|
-
GetSystemInfo(&si);
|
362
|
-
return si.dwPageSize;
|
363
|
-
# else
|
364
|
-
# ifdef _WRS_KERNEL
|
365
|
-
long size = FMT_POSIX_CALL(getpagesize());
|
366
|
-
# else
|
367
|
-
long size = FMT_POSIX_CALL(sysconf(_SC_PAGESIZE));
|
368
|
-
# endif
|
369
|
-
|
370
|
-
if (size < 0)
|
371
|
-
FMT_THROW(system_error(errno, FMT_STRING("cannot get memory page size")));
|
372
|
-
return size;
|
373
|
-
# endif
|
374
|
-
}
|
375
|
-
# endif
|
376
|
-
|
377
|
-
namespace detail {
|
378
|
-
|
379
|
-
void file_buffer::grow(buffer<char>& buf, size_t) {
|
380
|
-
if (buf.size() == buf.capacity()) static_cast<file_buffer&>(buf).flush();
|
381
|
-
}
|
382
|
-
|
383
|
-
file_buffer::file_buffer(cstring_view path, const ostream_params& params)
|
384
|
-
: buffer<char>(grow), file_(path, params.oflag) {
|
385
|
-
set(new char[params.buffer_size], params.buffer_size);
|
386
|
-
}
|
387
|
-
|
388
|
-
file_buffer::file_buffer(file_buffer&& other) noexcept
|
389
|
-
: buffer<char>(grow, other.data(), other.size(), other.capacity()),
|
390
|
-
file_(std::move(other.file_)) {
|
391
|
-
other.clear();
|
392
|
-
other.set(nullptr, 0);
|
393
|
-
}
|
394
|
-
|
395
|
-
file_buffer::~file_buffer() {
|
396
|
-
flush();
|
397
|
-
delete[] data();
|
398
|
-
}
|
399
|
-
} // namespace detail
|
400
|
-
|
401
|
-
ostream::~ostream() = default;
|
402
|
-
#endif // FMT_USE_FCNTL
|
403
|
-
FMT_END_NAMESPACE
|
data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/FindSetEnv.cmake
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# A CMake script to find SetEnv.cmd.
|
2
|
-
|
3
|
-
find_program(WINSDK_SETENV NAMES SetEnv.cmd
|
4
|
-
PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows;CurrentInstallFolder]/bin")
|
5
|
-
if (WINSDK_SETENV AND PRINT_PATH)
|
6
|
-
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${WINSDK_SETENV}")
|
7
|
-
endif ()
|
data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/JoinPaths.cmake
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# This module provides function for joining paths
|
2
|
-
# known from from most languages
|
3
|
-
#
|
4
|
-
# Original license:
|
5
|
-
# SPDX-License-Identifier: (MIT OR CC0-1.0)
|
6
|
-
# Explicit permission given to distribute this module under
|
7
|
-
# the terms of the project as described in /LICENSE.rst.
|
8
|
-
# Copyright 2020 Jan Tojnar
|
9
|
-
# https://github.com/jtojnar/cmake-snips
|
10
|
-
#
|
11
|
-
# Modelled after Python’s os.path.join
|
12
|
-
# https://docs.python.org/3.7/library/os.path.html#os.path.join
|
13
|
-
# Windows not supported
|
14
|
-
function(join_paths joined_path first_path_segment)
|
15
|
-
set(temp_path "${first_path_segment}")
|
16
|
-
foreach(current_segment IN LISTS ARGN)
|
17
|
-
if(NOT ("${current_segment}" STREQUAL ""))
|
18
|
-
if(IS_ABSOLUTE "${current_segment}")
|
19
|
-
set(temp_path "${current_segment}")
|
20
|
-
else()
|
21
|
-
set(temp_path "${temp_path}/${current_segment}")
|
22
|
-
endif()
|
23
|
-
endif()
|
24
|
-
endforeach()
|
25
|
-
set(${joined_path} "${temp_path}" PARENT_SCOPE)
|
26
|
-
endfunction()
|
@@ -1,11 +0,0 @@
|
|
1
|
-
prefix=@CMAKE_INSTALL_PREFIX@
|
2
|
-
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
3
|
-
libdir=@libdir_for_pc_file@
|
4
|
-
includedir=@includedir_for_pc_file@
|
5
|
-
|
6
|
-
Name: fmt
|
7
|
-
Description: A modern formatting library
|
8
|
-
Version: @FMT_VERSION@
|
9
|
-
Libs: -L${libdir} -l@FMT_LIB_NAME@
|
10
|
-
Cflags: -I${includedir}
|
11
|
-
|
@@ -1,235 +0,0 @@
|
|
1
|
-
// Formatting library for C++ - dynamic argument lists
|
2
|
-
//
|
3
|
-
// Copyright (c) 2012 - present, Victor Zverovich
|
4
|
-
// All rights reserved.
|
5
|
-
//
|
6
|
-
// For the license information refer to format.h.
|
7
|
-
|
8
|
-
#ifndef FMT_ARGS_H_
|
9
|
-
#define FMT_ARGS_H_
|
10
|
-
|
11
|
-
#include <functional> // std::reference_wrapper
|
12
|
-
#include <memory> // std::unique_ptr
|
13
|
-
#include <vector>
|
14
|
-
|
15
|
-
#include "core.h"
|
16
|
-
|
17
|
-
FMT_BEGIN_NAMESPACE
|
18
|
-
|
19
|
-
namespace detail {
|
20
|
-
|
21
|
-
template <typename T> struct is_reference_wrapper : std::false_type {};
|
22
|
-
template <typename T>
|
23
|
-
struct is_reference_wrapper<std::reference_wrapper<T>> : std::true_type {};
|
24
|
-
|
25
|
-
template <typename T> auto unwrap(const T& v) -> const T& { return v; }
|
26
|
-
template <typename T>
|
27
|
-
auto unwrap(const std::reference_wrapper<T>& v) -> const T& {
|
28
|
-
return static_cast<const T&>(v);
|
29
|
-
}
|
30
|
-
|
31
|
-
class dynamic_arg_list {
|
32
|
-
// Workaround for clang's -Wweak-vtables. Unlike for regular classes, for
|
33
|
-
// templates it doesn't complain about inability to deduce single translation
|
34
|
-
// unit for placing vtable. So storage_node_base is made a fake template.
|
35
|
-
template <typename = void> struct node {
|
36
|
-
virtual ~node() = default;
|
37
|
-
std::unique_ptr<node<>> next;
|
38
|
-
};
|
39
|
-
|
40
|
-
template <typename T> struct typed_node : node<> {
|
41
|
-
T value;
|
42
|
-
|
43
|
-
template <typename Arg>
|
44
|
-
FMT_CONSTEXPR typed_node(const Arg& arg) : value(arg) {}
|
45
|
-
|
46
|
-
template <typename Char>
|
47
|
-
FMT_CONSTEXPR typed_node(const basic_string_view<Char>& arg)
|
48
|
-
: value(arg.data(), arg.size()) {}
|
49
|
-
};
|
50
|
-
|
51
|
-
std::unique_ptr<node<>> head_;
|
52
|
-
|
53
|
-
public:
|
54
|
-
template <typename T, typename Arg> auto push(const Arg& arg) -> const T& {
|
55
|
-
auto new_node = std::unique_ptr<typed_node<T>>(new typed_node<T>(arg));
|
56
|
-
auto& value = new_node->value;
|
57
|
-
new_node->next = std::move(head_);
|
58
|
-
head_ = std::move(new_node);
|
59
|
-
return value;
|
60
|
-
}
|
61
|
-
};
|
62
|
-
} // namespace detail
|
63
|
-
|
64
|
-
/**
|
65
|
-
\rst
|
66
|
-
A dynamic version of `fmt::format_arg_store`.
|
67
|
-
It's equipped with a storage to potentially temporary objects which lifetimes
|
68
|
-
could be shorter than the format arguments object.
|
69
|
-
|
70
|
-
It can be implicitly converted into `~fmt::basic_format_args` for passing
|
71
|
-
into type-erased formatting functions such as `~fmt::vformat`.
|
72
|
-
\endrst
|
73
|
-
*/
|
74
|
-
template <typename Context>
|
75
|
-
class dynamic_format_arg_store
|
76
|
-
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
|
77
|
-
// Workaround a GCC template argument substitution bug.
|
78
|
-
: public basic_format_args<Context>
|
79
|
-
#endif
|
80
|
-
{
|
81
|
-
private:
|
82
|
-
using char_type = typename Context::char_type;
|
83
|
-
|
84
|
-
template <typename T> struct need_copy {
|
85
|
-
static constexpr detail::type mapped_type =
|
86
|
-
detail::mapped_type_constant<T, Context>::value;
|
87
|
-
|
88
|
-
enum {
|
89
|
-
value = !(detail::is_reference_wrapper<T>::value ||
|
90
|
-
std::is_same<T, basic_string_view<char_type>>::value ||
|
91
|
-
std::is_same<T, detail::std_string_view<char_type>>::value ||
|
92
|
-
(mapped_type != detail::type::cstring_type &&
|
93
|
-
mapped_type != detail::type::string_type &&
|
94
|
-
mapped_type != detail::type::custom_type))
|
95
|
-
};
|
96
|
-
};
|
97
|
-
|
98
|
-
template <typename T>
|
99
|
-
using stored_type = conditional_t<
|
100
|
-
std::is_convertible<T, std::basic_string<char_type>>::value &&
|
101
|
-
!detail::is_reference_wrapper<T>::value,
|
102
|
-
std::basic_string<char_type>, T>;
|
103
|
-
|
104
|
-
// Storage of basic_format_arg must be contiguous.
|
105
|
-
std::vector<basic_format_arg<Context>> data_;
|
106
|
-
std::vector<detail::named_arg_info<char_type>> named_info_;
|
107
|
-
|
108
|
-
// Storage of arguments not fitting into basic_format_arg must grow
|
109
|
-
// without relocation because items in data_ refer to it.
|
110
|
-
detail::dynamic_arg_list dynamic_args_;
|
111
|
-
|
112
|
-
friend class basic_format_args<Context>;
|
113
|
-
|
114
|
-
auto get_types() const -> unsigned long long {
|
115
|
-
return detail::is_unpacked_bit | data_.size() |
|
116
|
-
(named_info_.empty()
|
117
|
-
? 0ULL
|
118
|
-
: static_cast<unsigned long long>(detail::has_named_args_bit));
|
119
|
-
}
|
120
|
-
|
121
|
-
auto data() const -> const basic_format_arg<Context>* {
|
122
|
-
return named_info_.empty() ? data_.data() : data_.data() + 1;
|
123
|
-
}
|
124
|
-
|
125
|
-
template <typename T> void emplace_arg(const T& arg) {
|
126
|
-
data_.emplace_back(detail::make_arg<Context>(arg));
|
127
|
-
}
|
128
|
-
|
129
|
-
template <typename T>
|
130
|
-
void emplace_arg(const detail::named_arg<char_type, T>& arg) {
|
131
|
-
if (named_info_.empty()) {
|
132
|
-
constexpr const detail::named_arg_info<char_type>* zero_ptr{nullptr};
|
133
|
-
data_.insert(data_.begin(), {zero_ptr, 0});
|
134
|
-
}
|
135
|
-
data_.emplace_back(detail::make_arg<Context>(detail::unwrap(arg.value)));
|
136
|
-
auto pop_one = [](std::vector<basic_format_arg<Context>>* data) {
|
137
|
-
data->pop_back();
|
138
|
-
};
|
139
|
-
std::unique_ptr<std::vector<basic_format_arg<Context>>, decltype(pop_one)>
|
140
|
-
guard{&data_, pop_one};
|
141
|
-
named_info_.push_back({arg.name, static_cast<int>(data_.size() - 2u)});
|
142
|
-
data_[0].value_.named_args = {named_info_.data(), named_info_.size()};
|
143
|
-
guard.release();
|
144
|
-
}
|
145
|
-
|
146
|
-
public:
|
147
|
-
constexpr dynamic_format_arg_store() = default;
|
148
|
-
|
149
|
-
/**
|
150
|
-
\rst
|
151
|
-
Adds an argument into the dynamic store for later passing to a formatting
|
152
|
-
function.
|
153
|
-
|
154
|
-
Note that custom types and string types (but not string views) are copied
|
155
|
-
into the store dynamically allocating memory if necessary.
|
156
|
-
|
157
|
-
**Example**::
|
158
|
-
|
159
|
-
fmt::dynamic_format_arg_store<fmt::format_context> store;
|
160
|
-
store.push_back(42);
|
161
|
-
store.push_back("abc");
|
162
|
-
store.push_back(1.5f);
|
163
|
-
std::string result = fmt::vformat("{} and {} and {}", store);
|
164
|
-
\endrst
|
165
|
-
*/
|
166
|
-
template <typename T> void push_back(const T& arg) {
|
167
|
-
if (detail::const_check(need_copy<T>::value))
|
168
|
-
emplace_arg(dynamic_args_.push<stored_type<T>>(arg));
|
169
|
-
else
|
170
|
-
emplace_arg(detail::unwrap(arg));
|
171
|
-
}
|
172
|
-
|
173
|
-
/**
|
174
|
-
\rst
|
175
|
-
Adds a reference to the argument into the dynamic store for later passing to
|
176
|
-
a formatting function.
|
177
|
-
|
178
|
-
**Example**::
|
179
|
-
|
180
|
-
fmt::dynamic_format_arg_store<fmt::format_context> store;
|
181
|
-
char band[] = "Rolling Stones";
|
182
|
-
store.push_back(std::cref(band));
|
183
|
-
band[9] = 'c'; // Changing str affects the output.
|
184
|
-
std::string result = fmt::vformat("{}", store);
|
185
|
-
// result == "Rolling Scones"
|
186
|
-
\endrst
|
187
|
-
*/
|
188
|
-
template <typename T> void push_back(std::reference_wrapper<T> arg) {
|
189
|
-
static_assert(
|
190
|
-
need_copy<T>::value,
|
191
|
-
"objects of built-in types and string views are always copied");
|
192
|
-
emplace_arg(arg.get());
|
193
|
-
}
|
194
|
-
|
195
|
-
/**
|
196
|
-
Adds named argument into the dynamic store for later passing to a formatting
|
197
|
-
function. ``std::reference_wrapper`` is supported to avoid copying of the
|
198
|
-
argument. The name is always copied into the store.
|
199
|
-
*/
|
200
|
-
template <typename T>
|
201
|
-
void push_back(const detail::named_arg<char_type, T>& arg) {
|
202
|
-
const char_type* arg_name =
|
203
|
-
dynamic_args_.push<std::basic_string<char_type>>(arg.name).c_str();
|
204
|
-
if (detail::const_check(need_copy<T>::value)) {
|
205
|
-
emplace_arg(
|
206
|
-
fmt::arg(arg_name, dynamic_args_.push<stored_type<T>>(arg.value)));
|
207
|
-
} else {
|
208
|
-
emplace_arg(fmt::arg(arg_name, arg.value));
|
209
|
-
}
|
210
|
-
}
|
211
|
-
|
212
|
-
/** Erase all elements from the store */
|
213
|
-
void clear() {
|
214
|
-
data_.clear();
|
215
|
-
named_info_.clear();
|
216
|
-
dynamic_args_ = detail::dynamic_arg_list();
|
217
|
-
}
|
218
|
-
|
219
|
-
/**
|
220
|
-
\rst
|
221
|
-
Reserves space to store at least *new_cap* arguments including
|
222
|
-
*new_cap_named* named arguments.
|
223
|
-
\endrst
|
224
|
-
*/
|
225
|
-
void reserve(size_t new_cap, size_t new_cap_named) {
|
226
|
-
FMT_ASSERT(new_cap >= new_cap_named,
|
227
|
-
"Set of arguments includes set of named arguments");
|
228
|
-
data_.reserve(new_cap);
|
229
|
-
named_info_.reserve(new_cap_named);
|
230
|
-
}
|
231
|
-
};
|
232
|
-
|
233
|
-
FMT_END_NAMESPACE
|
234
|
-
|
235
|
-
#endif // FMT_ARGS_H_
|