From 8d614cf87b15dbdae223ecc1d8e84c27fea19751 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 9 Sep 2026 11:16:03 +0000 Subject: [PATCH 1/2] Move the runtime include root from smithy/ to opal/ (#201, ADR-0024) Surface 2 of 3. runtime/include/smithy/ and runtime/testing/include/smithy/ become opal/; every #include, the include guards, the SMITHY_* macro prefix (OPAL_E2E_HAVE_BEAST) and the runtime's own "opal: " log prefix follow. The codegen emitters print the new paths and the goldens are regenerated from them, byte-identical on a second run. The rules-test fixture's smithy/cpp/ruletest/ headers stay: they derive from its model's namespace, not from the runtime. SMITHY_COPTS and the Bazel module name are surface 3. --- CHANGELOG.md | 15 +++ bazel/tests/greeter_roundtrip_test.cc | 4 +- benchmarks/beast_benchmark.cc | 32 ++--- benchmarks/request_benchmark.cc | 4 +- benchmarks/serde_benchmark.cc | 8 +- .../compile-tests/streaming_compile_test.cc | 16 +-- .../io/smithycpp/codegen/ClientGenerator.java | 12 +- .../smithycpp/codegen/CppSymbolProvider.java | 12 +- .../java/io/smithycpp/codegen/CppWriter.java | 2 +- .../smithycpp/codegen/EventStreamCodeGen.java | 14 +-- .../codegen/HttpJsonClientGenerator.java | 6 +- .../codegen/HttpJsonServerGenerator.java | 10 +- .../codegen/IntegrationTestGenerator.java | 14 +-- .../smithycpp/codegen/JsonRpc2Protocol.java | 5 +- .../codegen/JsonRpc2StreamCodeGen.java | 4 +- .../io/smithycpp/codegen/ProtocolSupport.java | 16 +-- .../codegen/ProtocolTestGenerator.java | 2 +- .../smithycpp/codegen/Rpcv2CborProtocol.java | 4 +- .../io/smithycpp/codegen/SerdeGenerator.java | 6 +- .../io/smithycpp/codegen/ServerGenerator.java | 12 +- .../smithycpp/codegen/SmokeTestGenerator.java | 4 +- .../io/smithycpp/codegen/TypeGenerators.java | 8 +- .../codegen/ValidationGenerator.java | 6 +- .../codegen/CppSymbolProviderTest.java | 3 +- .../codegen/EventStreamGeneratorTest.java | 2 +- .../codegen/GeneratedCodeShapeTest.java | 8 +- docs/PLAN.md | 26 ++-- docs/adr/0003-error-handling.md | 2 +- .../0005-phase1-transport-and-serde-scope.md | 6 +- .../adr/0009-fail-fast-contract-violations.md | 2 +- docs/adr/0010-handler-request-context.md | 2 +- docs/adr/0012-forwarded-client-address.md | 2 +- docs/adr/0014-event-stream-framing-first.md | 2 +- .../0024-runtime-not-named-after-the-idl.md | 4 +- docs/development.md | 4 +- docs/generated-types.md | 4 +- docs/production-guide.md | 22 ++-- docs/research/client-third-party-api-gaps.md | 2 +- docs/research/libwebsockets-transport.md | 2 +- docs/runtime.md | 2 +- docs/server-guide.md | 8 +- .../plans/2026-07-08-server-middleware.md | 34 ++--- .../2026-07-08-server-middleware-design.md | 2 +- docs/versioning.md | 2 +- .../access_log_acceptance_test.cc | 10 +- .../bazel-consumer/async_acceptance_test.cc | 10 +- .../chat_async_reconnect_server_main.cc | 6 +- .../chat_reconnect_client_main.cc | 6 +- .../chat_reconnect_server_main.cc | 6 +- .../eventstream_consumer_test.cc | 8 +- .../exception_safety_acceptance_test.cc | 8 +- examples/bazel-consumer/head_e2e_test.cc | 6 +- .../bazel-consumer/jsonrpc_raw_peer_main.cc | 8 +- .../jsonrpc_stream_client_main.cc | 4 +- .../jsonrpc_stream_server_main.cc | 4 +- .../bazel-consumer/metrics_acceptance_test.cc | 8 +- examples/bazel-consumer/redirect_e2e_test.cc | 8 +- .../streaming_acceptance_test.cc | 8 +- .../todo_beast_acceptance_test.cc | 8 +- .../bazel-consumer/todo_integration_test.cc | 14 +-- .../websocket_acceptance_test.cc | 6 +- .../websocket_contract_consumer_test.cc | 6 +- .../generated/include/example/cafe/client.h | 12 +- .../generated/include/example/cafe/serde.h | 4 +- .../generated/include/example/cafe/server.h | 6 +- .../generated/include/example/cafe/types.h | 10 +- examples/cafe/generated/src/client.cc | 14 +-- examples/cafe/generated/src/serde.cc | 2 +- examples/cafe/generated/src/server.cc | 12 +- .../cafe/generated/tests/integration_test.cc | 12 +- examples/cafe/generated/tests/smoke_test.cc | 4 +- examples/cafe/generated_client_test.cc | 6 +- examples/chat/async_hub_server_main.cc | 6 +- examples/chat/chat_browser_e2e_test.cc | 8 +- examples/chat/chat_e2e_beast_test.cc | 8 +- examples/chat/chat_e2e_test.cc | 16 +-- .../generated/include/example/chat/client.h | 14 +-- .../generated/include/example/chat/serde.h | 4 +- .../generated/include/example/chat/server.h | 12 +- .../generated/include/example/chat/types.h | 6 +- examples/chat/generated/src/client.cc | 22 ++-- examples/chat/generated/src/serde.cc | 2 +- examples/chat/generated/src/server.cc | 18 +-- .../chat/generated/tests/integration_test.cc | 10 +- examples/chat/generated/tests/smoke_test.cc | 4 +- examples/chat/hub_client_main.cc | 6 +- examples/chat/hub_e2e_test.cc | 10 +- examples/chat/hub_handler.h | 10 +- examples/chat/hub_server_main.cc | 4 +- examples/chat/room_handler.h | 8 +- examples/chat/stream_test_fixture.h | 18 +-- examples/jsonrpc2/accumulate_handler.h | 8 +- .../include/example/calculator/client.h | 14 +-- .../include/example/calculator/serde.h | 4 +- .../include/example/calculator/server.h | 12 +- .../include/example/calculator/types.h | 6 +- examples/jsonrpc2/generated/src/client.cc | 22 ++-- examples/jsonrpc2/generated/src/serde.cc | 2 +- examples/jsonrpc2/generated/src/server.cc | 16 +-- .../generated/tests/integration_test.cc | 10 +- .../jsonrpc2/generated/tests/smoke_test.cc | 4 +- examples/jsonrpc2/interop_wire_test.cc | 8 +- examples/jsonrpc2/stream_e2e_beast_test.cc | 10 +- examples/jsonrpc2/stream_e2e_test.cc | 4 +- examples/jsonrpc2/stream_test_fixture.h | 18 +-- .../example/roundtrip/jsonrpc/client.h | 12 +- .../include/example/roundtrip/jsonrpc/serde.h | 4 +- .../example/roundtrip/jsonrpc/server.h | 6 +- .../include/example/roundtrip/jsonrpc/types.h | 10 +- .../roundtrip/jsonrpc/generated/src/client.cc | 16 +-- .../roundtrip/jsonrpc/generated/src/serde.cc | 2 +- .../roundtrip/jsonrpc/generated/src/server.cc | 10 +- .../generated/tests/integration_test.cc | 10 +- .../jsonrpc/generated/tests/smoke_test.cc | 4 +- examples/roundtrip/rest/api_key_wire_test.cc | 4 +- .../include/example/roundtrip/rest/client.h | 12 +- .../include/example/roundtrip/rest/serde.h | 4 +- .../include/example/roundtrip/rest/server.h | 6 +- .../include/example/roundtrip/rest/types.h | 12 +- .../roundtrip/rest/generated/src/client.cc | 18 +-- .../roundtrip/rest/generated/src/serde.cc | 2 +- .../roundtrip/rest/generated/src/server.cc | 20 +-- .../rest/generated/tests/integration_test.cc | 10 +- .../rest/generated/tests/smoke_test.cc | 4 +- .../rest/numeric_bounds_wire_test.cc | 8 +- examples/roundtrip/rest/typed_errors_test.cc | 4 +- .../include/example/roundtrip/rpc/client.h | 12 +- .../include/example/roundtrip/rpc/serde.h | 4 +- .../include/example/roundtrip/rpc/server.h | 6 +- .../include/example/roundtrip/rpc/types.h | 10 +- .../roundtrip/rpc/generated/src/client.cc | 14 +-- examples/roundtrip/rpc/generated/src/serde.cc | 2 +- .../roundtrip/rpc/generated/src/server.cc | 10 +- .../rpc/generated/tests/integration_test.cc | 12 +- .../rpc/generated/tests/smoke_test.cc | 4 +- .../roundtrip/rpc/no_input_body_wire_test.cc | 4 +- .../include/example/bookstore/client.h | 12 +- .../include/example/bookstore/serde.h | 4 +- .../include/example/bookstore/server.h | 6 +- .../include/example/bookstore/types.h | 4 +- .../simplerestjson/generated/src/client.cc | 16 +-- .../simplerestjson/generated/src/serde.cc | 2 +- .../simplerestjson/generated/src/server.cc | 14 +-- .../generated/tests/integration_test.cc | 10 +- .../generated/tests/smoke_test.cc | 4 +- examples/simplerestjson/serve_main.cc | 4 +- examples/weather/BUILD.bazel | 2 +- .../include/example/weather/client.h | 16 +-- .../generated/include/example/weather/serde.h | 4 +- .../include/example/weather/server.h | 6 +- .../generated/include/example/weather/types.h | 6 +- examples/weather/generated/src/client.cc | 16 +-- examples/weather/generated/src/serde.cc | 2 +- examples/weather/generated/src/server.cc | 16 +-- .../generated/tests/integration_test.cc | 10 +- .../weather/generated/tests/smoke_test.cc | 4 +- examples/weather/generated_client_e2e_test.cc | 4 +- examples/weather/generated_server_e2e_test.cc | 12 +- .../weather/handwritten/weather_client.cc | 4 +- examples/weather/handwritten/weather_client.h | 12 +- .../weather/handwritten/weather_e2e_test.cc | 16 +-- .../weather/handwritten/weather_server.cc | 2 +- examples/weather/handwritten/weather_server.h | 10 +- examples/weather/handwritten/weather_types.h | 10 +- fuzz/access_log_fuzz.cc | 4 +- fuzz/cbor_decode_fuzz.cc | 4 +- fuzz/eventstream_frame_fuzz.cc | 2 +- fuzz/eventstream_json_frame_fuzz.cc | 2 +- fuzz/eventstream_jsonrpc_frame_fuzz.cc | 4 +- fuzz/forwarded_fuzz.cc | 2 +- fuzz/gzip_fuzz.cc | 4 +- fuzz/http1_fuzz.cc | 2 +- fuzz/json_decode_fuzz.cc | 2 +- fuzz/regex_fuzz.cc | 2 +- fuzz/server_dispatch_fuzz.cc | 2 +- fuzz/timestamp_fuzz.cc | 2 +- fuzz/uri_fuzz.cc | 2 +- .../opal/protocoltests/jsonrpc2/client.h | 14 +-- .../opal/protocoltests/jsonrpc2/serde.h | 4 +- .../opal/protocoltests/jsonrpc2/server.h | 12 +- .../opal/protocoltests/jsonrpc2/types.h | 8 +- .../jsonrpc2/generated/src/client.cc | 22 ++-- .../jsonrpc2/generated/src/serde.cc | 2 +- .../jsonrpc2/generated/src/server.cc | 20 +-- .../jsonrpc2/generated/tests/request_tests.cc | 2 +- .../generated/tests/response_tests.cc | 2 +- .../generated/tests/server_malformed_tests.cc | 2 +- .../generated/tests/server_request_tests.cc | 2 +- .../generated/tests/server_response_tests.cc | 2 +- .../jsonrpc2/generated/tests/smoke_test.cc | 4 +- .../jsonrpc2/stream_conformance_test.cc | 16 +-- .../opal/protocoltests/rpcv2cbor/client.h | 12 +- .../opal/protocoltests/rpcv2cbor/serde.h | 8 +- .../opal/protocoltests/rpcv2cbor/server.h | 6 +- .../opal/protocoltests/rpcv2cbor/types.h | 12 +- .../rpcv2cbor/generated/src/client.cc | 12 +- .../rpcv2cbor/generated/src/serde.cc | 2 +- .../rpcv2cbor/generated/src/server.cc | 8 +- .../generated/tests/request_tests.cc | 2 +- .../generated/tests/response_tests.cc | 2 +- .../generated/tests/server_request_tests.cc | 2 +- .../generated/tests/server_response_tests.cc | 2 +- .../rpcv2cbor/generated/tests/smoke_test.cc | 4 +- .../malformed/server_malformed_test.cc | 4 +- .../protocoltests/simplerestjson/client.h | 12 +- .../opal/protocoltests/simplerestjson/serde.h | 4 +- .../protocoltests/simplerestjson/server.h | 6 +- .../opal/protocoltests/simplerestjson/types.h | 10 +- .../simplerestjson/generated/src/client.cc | 16 +-- .../simplerestjson/generated/src/serde.cc | 2 +- .../simplerestjson/generated/src/server.cc | 16 +-- .../generated/tests/request_tests.cc | 2 +- .../generated/tests/response_tests.cc | 2 +- .../generated/tests/server_request_tests.cc | 2 +- .../generated/tests/server_response_tests.cc | 2 +- .../generated/tests/smoke_test.cc | 4 +- .../malformed/pattern_violation_test.cc | 2 +- .../malformed/server_malformed_test.cc | 2 +- protocol-tests/unions/union_accessor_test.cc | 2 +- protocol-tests/unions/union_cbor_test.cc | 8 +- .../unions/union_gauntlet_cbor_test.cc | 12 +- .../unions/union_gauntlet_jsonrpc2_test.cc | 12 +- protocol-tests/unions/union_jsonrpc2_test.cc | 8 +- runtime/BUILD.bazel | 118 +++++++++--------- runtime/include/{smithy => opal}/cbor/cbor.h | 12 +- .../include/{smithy => opal}/client/config.h | 18 +-- .../{smithy => opal}/client/interceptor.h | 10 +- .../{smithy => opal}/client/observability.h | 10 +- .../{smithy => opal}/client/pagination.h | 8 +- .../include/{smithy => opal}/client/retry.h | 14 +-- .../{smithy => opal}/compression/gzip.h | 8 +- .../compression/gzip_test_peer.h | 8 +- .../include/{smithy => opal}/core/base64.h | 10 +- runtime/include/{smithy => opal}/core/blob.h | 8 +- runtime/include/{smithy => opal}/core/boxed.h | 8 +- .../{smithy => opal}/core/container_traits.h | 6 +- .../include/{smithy => opal}/core/document.h | 16 +-- .../{smithy => opal}/core/document_serde.h | 14 +-- runtime/include/{smithy => opal}/core/error.h | 6 +- .../{smithy => opal}/core/exception_guard.h | 6 +- runtime/include/{smithy => opal}/core/fatal.h | 8 +- runtime/include/{smithy => opal}/core/hash.h | 8 +- .../include/{smithy => opal}/core/outcome.h | 12 +- .../{smithy => opal}/core/overloaded.h | 6 +- runtime/include/{smithy => opal}/core/print.h | 8 +- runtime/include/{smithy => opal}/core/regex.h | 8 +- runtime/include/{smithy => opal}/core/text.h | 6 +- .../include/{smithy => opal}/core/timestamp.h | 10 +- runtime/include/{smithy => opal}/core/uuid.h | 6 +- .../include/{smithy => opal}/core/version.h | 6 +- .../eventstream/async_event_stream.h | 18 +-- .../{smithy => opal}/eventstream/envelope.h | 16 +-- .../eventstream/event_stream.h | 16 +-- .../{smithy => opal}/eventstream/frame.h | 16 +-- .../{smithy => opal}/eventstream/json_frame.h | 10 +- .../eventstream/jsonrpc_frame.h | 12 +- .../eventstream/jsonrpc_stream_socket.h | 14 +-- .../{smithy => opal}/http/beast_transport.h | 14 +-- .../include/{smithy => opal}/http/forwarded.h | 12 +- .../include/{smithy => opal}/http/headers.h | 6 +- runtime/include/{smithy => opal}/http/http1.h | 10 +- .../include/{smithy => opal}/http/loopback.h | 10 +- .../include/{smithy => opal}/http/message.h | 8 +- .../{smithy => opal}/http/server_dispatch.h | 10 +- .../{smithy => opal}/http/socket_transport.h | 8 +- .../{smithy => opal}/http/trace_context.h | 6 +- .../include/{smithy => opal}/http/transport.h | 12 +- runtime/include/{smithy => opal}/http/uri.h | 8 +- .../include/{smithy => opal}/http/websocket.h | 12 +- .../{smithy => opal}/http/websocket_pair.h | 8 +- runtime/include/{smithy => opal}/json/json.h | 10 +- .../{smithy => opal}/server/access_log.h | 8 +- .../include/{smithy => opal}/server/metrics.h | 10 +- .../{smithy => opal}/server/middleware.h | 14 +-- .../{smithy => opal}/server/origin_gate.h | 8 +- .../include/{smithy => opal}/server/router.h | 12 +- .../server/session_registry.h | 8 +- .../server/websocket_router.h | 14 +-- runtime/src/cbor/cbor.cc | 2 +- runtime/src/client/observability.cc | 2 +- runtime/src/client/retry.cc | 2 +- runtime/src/compression/gzip.cc | 6 +- runtime/src/core/base64.cc | 2 +- runtime/src/core/document_serde.cc | 4 +- runtime/src/core/regex.cc | 4 +- runtime/src/core/text.cc | 2 +- runtime/src/core/timestamp.cc | 2 +- runtime/src/core/uuid.cc | 2 +- runtime/src/core/version.cc | 2 +- runtime/src/eventstream/envelope.cc | 4 +- runtime/src/eventstream/frame.cc | 6 +- runtime/src/eventstream/json_frame.cc | 10 +- runtime/src/eventstream/jsonrpc_frame.cc | 8 +- .../src/eventstream/jsonrpc_stream_socket.cc | 8 +- runtime/src/http/beast_transport.cc | 44 +++---- runtime/src/http/forwarded.cc | 4 +- runtime/src/http/headers.cc | 2 +- runtime/src/http/http1.cc | 4 +- runtime/src/http/server_dispatch.cc | 8 +- runtime/src/http/socket_transport.cc | 12 +- runtime/src/http/trace_context.cc | 2 +- runtime/src/http/uri.cc | 2 +- runtime/src/http/websocket_pair.cc | 4 +- runtime/src/json/json.cc | 4 +- runtime/src/server/access_log.cc | 8 +- runtime/src/server/metrics.cc | 4 +- runtime/src/server/middleware.cc | 28 ++--- runtime/src/server/origin_gate.cc | 8 +- runtime/src/server/router.cc | 4 +- runtime/src/server/websocket_router.cc | 12 +- .../testing/connection_event_recorder.h | 8 +- .../{smithy => opal}/testing/protocol_test.h | 22 ++-- .../testing/tls_test_identity.h | 6 +- .../testing/websocket_contract_test.h | 16 +-- runtime/tests/cbor/cbor_hostile_test.cc | 2 +- runtime/tests/cbor/cbor_property_test.cc | 2 +- runtime/tests/cbor/cbor_test.cc | 2 +- runtime/tests/client/observability_test.cc | 10 +- runtime/tests/client/pagination_test.cc | 8 +- runtime/tests/client/retry_test.cc | 4 +- runtime/tests/compression/gzip_test.cc | 4 +- runtime/tests/core/boxed_test.cc | 2 +- runtime/tests/core/core_test.cc | 12 +- runtime/tests/core/document_serde_test.cc | 4 +- runtime/tests/core/exception_guard_test.cc | 2 +- runtime/tests/core/hash_test.cc | 12 +- runtime/tests/core/print_test.cc | 14 +-- runtime/tests/core/regex_test.cc | 2 +- .../tests/core/timestamp_differential_test.cc | 2 +- runtime/tests/core/timestamp_test.cc | 2 +- runtime/tests/core/uuid_test.cc | 2 +- runtime/tests/core/version_test.cc | 2 +- .../eventstream/async_event_stream_test.cc | 12 +- runtime/tests/eventstream/envelope_test.cc | 4 +- .../tests/eventstream/event_stream_test.cc | 8 +- runtime/tests/eventstream/frame_test.cc | 2 +- runtime/tests/eventstream/json_frame_test.cc | 6 +- .../tests/eventstream/jsonrpc_frame_test.cc | 8 +- .../eventstream/jsonrpc_stream_socket_test.cc | 12 +- runtime/tests/http/beast_client_test.cc | 16 +-- runtime/tests/http/beast_transport_test.cc | 10 +- runtime/tests/http/beast_websocket_test.cc | 16 +-- runtime/tests/http/forwarded_test.cc | 2 +- runtime/tests/http/http1_hostile_test.cc | 2 +- runtime/tests/http/http_test.cc | 8 +- runtime/tests/http/server_dispatch_test.cc | 8 +- .../http/socket_transport_hostile_test.cc | 2 +- runtime/tests/http/socket_transport_test.cc | 4 +- runtime/tests/http/trace_context_test.cc | 2 +- runtime/tests/http/uri_property_test.cc | 2 +- runtime/tests/http/websocket_pair_test.cc | 6 +- runtime/tests/json/json_conformance_test.cc | 2 +- runtime/tests/json/json_property_test.cc | 2 +- runtime/tests/json/json_test.cc | 2 +- runtime/tests/server/access_log_test.cc | 10 +- runtime/tests/server/metrics_test.cc | 4 +- runtime/tests/server/middleware_test.cc | 6 +- runtime/tests/server/origin_gate_test.cc | 4 +- runtime/tests/server/router_test.cc | 2 +- runtime/tests/server/session_registry_test.cc | 12 +- runtime/tests/server/websocket_router_test.cc | 4 +- .../testing/protocol_test_support_test.cc | 2 +- runtime/tests/testing/random_document.h | 8 +- tools/BUILD.bazel | 2 +- tools/release.sh | 2 +- tools/release_test.sh | 6 +- 366 files changed, 1481 insertions(+), 1468 deletions(-) rename runtime/include/{smithy => opal}/cbor/cbor.h (79%) rename runtime/include/{smithy => opal}/client/config.h (88%) rename runtime/include/{smithy => opal}/client/interceptor.h (86%) rename runtime/include/{smithy => opal}/client/observability.h (87%) rename runtime/include/{smithy => opal}/client/pagination.h (94%) rename runtime/include/{smithy => opal}/client/retry.h (89%) rename runtime/include/{smithy => opal}/compression/gzip.h (83%) rename runtime/include/{smithy => opal}/compression/gzip_test_peer.h (85%) rename runtime/include/{smithy => opal}/core/base64.h (70%) rename runtime/include/{smithy => opal}/core/blob.h (93%) rename runtime/include/{smithy => opal}/core/boxed.h (94%) rename runtime/include/{smithy => opal}/core/container_traits.h (85%) rename runtime/include/{smithy => opal}/core/document.h (93%) rename runtime/include/{smithy => opal}/core/document_serde.h (84%) rename runtime/include/{smithy => opal}/core/error.h (97%) rename runtime/include/{smithy => opal}/core/exception_guard.h (93%) rename runtime/include/{smithy => opal}/core/fatal.h (89%) rename runtime/include/{smithy => opal}/core/hash.h (94%) rename runtime/include/{smithy => opal}/core/outcome.h (94%) rename runtime/include/{smithy => opal}/core/overloaded.h (83%) rename runtime/include/{smithy => opal}/core/print.h (96%) rename runtime/include/{smithy => opal}/core/regex.h (96%) rename runtime/include/{smithy => opal}/core/text.h (77%) rename runtime/include/{smithy => opal}/core/timestamp.h (93%) rename runtime/include/{smithy => opal}/core/uuid.h (74%) rename runtime/include/{smithy => opal}/core/version.h (63%) rename runtime/include/{smithy => opal}/eventstream/async_event_stream.h (97%) rename runtime/include/{smithy => opal}/eventstream/envelope.h (91%) rename runtime/include/{smithy => opal}/eventstream/event_stream.h (97%) rename runtime/include/{smithy => opal}/eventstream/frame.h (94%) rename runtime/include/{smithy => opal}/eventstream/json_frame.h (92%) rename runtime/include/{smithy => opal}/eventstream/jsonrpc_frame.h (94%) rename runtime/include/{smithy => opal}/eventstream/jsonrpc_stream_socket.h (94%) rename runtime/include/{smithy => opal}/http/beast_transport.h (97%) rename runtime/include/{smithy => opal}/http/forwarded.h (95%) rename runtime/include/{smithy => opal}/http/headers.h (97%) rename runtime/include/{smithy => opal}/http/http1.h (92%) rename runtime/include/{smithy => opal}/http/loopback.h (85%) rename runtime/include/{smithy => opal}/http/message.h (93%) rename runtime/include/{smithy => opal}/http/server_dispatch.h (91%) rename runtime/include/{smithy => opal}/http/socket_transport.h (92%) rename runtime/include/{smithy => opal}/http/trace_context.h (90%) rename runtime/include/{smithy => opal}/http/transport.h (88%) rename runtime/include/{smithy => opal}/http/uri.h (95%) rename runtime/include/{smithy => opal}/http/websocket.h (98%) rename runtime/include/{smithy => opal}/http/websocket_pair.h (93%) rename runtime/include/{smithy => opal}/json/json.h (83%) rename runtime/include/{smithy => opal}/server/access_log.h (96%) rename runtime/include/{smithy => opal}/server/metrics.h (99%) rename runtime/include/{smithy => opal}/server/middleware.h (97%) rename runtime/include/{smithy => opal}/server/origin_gate.h (93%) rename runtime/include/{smithy => opal}/server/router.h (96%) rename runtime/include/{smithy => opal}/server/session_registry.h (99%) rename runtime/include/{smithy => opal}/server/websocket_router.h (96%) rename runtime/testing/include/{smithy => opal}/testing/connection_event_recorder.h (87%) rename runtime/testing/include/{smithy => opal}/testing/protocol_test.h (96%) rename runtime/testing/include/{smithy => opal}/testing/tls_test_identity.h (96%) rename runtime/testing/include/{smithy => opal}/testing/websocket_contract_test.h (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fe4529f..fe86f486 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,21 @@ policy in [docs/versioning.md](docs/versioning.md). ### Breaking +- **The runtime's include root is `opal/`, not `smithy/`** (#201, ADR-0024; + the second of three surfaces). `#include "smithy/http/transport.h"` is now + `#include "opal/http/transport.h"`, for every runtime header and for the + test helpers under `opal/testing/`. The include guards + (`OPAL_HTTP_TRANSPORT_H_`), the `SMITHY_*` macro prefix + (`OPAL_E2E_HAVE_BEAST`) and the `opal:` prefix on the runtime's own + stderr/clog lines follow it, and generated code includes the new paths. + Migration: `#include "smithy/` → `#include "opal/` over your tree. A + header path derived from your own model's Smithy namespace + (`smithy/cpp/ruletest/…` for this repo's rules-test fixture) is yours and + stays, so if you have one, constrain the substitution to the runtime's + directories: `smithy/{core,http,json,cbor,client,server,eventstream,compression,testing}/`. + Anything that greps a log for `smithy: ` now looks for `opal: `. The Bazel + module (`@smithy_cpp`) and `SMITHY_COPTS` are unchanged here and move in + the PR that follows. - **The runtime namespace is `opal`, not `smithy`** (#201, ADR-0024; the first of three surfaces). Smithy is the IDL a service is described in, not a property of its JSON codec or its HTTP transport, so `smithy::Outcome`, diff --git a/bazel/tests/greeter_roundtrip_test.cc b/bazel/tests/greeter_roundtrip_test.cc index 95ca7cb5..4ca51f8e 100644 --- a/bazel/tests/greeter_roundtrip_test.cc +++ b/bazel/tests/greeter_roundtrip_test.cc @@ -7,10 +7,10 @@ #include #include -#include "smithy/client/config.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" #include "smithy/cpp/ruletest/client.h" #include "smithy/cpp/ruletest/server.h" -#include "smithy/http/loopback.h" namespace smithy::cpp::ruletest { namespace { diff --git a/benchmarks/beast_benchmark.cc b/benchmarks/beast_benchmark.cc index 5d70ba0f..e4949efa 100644 --- a/benchmarks/beast_benchmark.cc +++ b/benchmarks/beast_benchmark.cc @@ -17,10 +17,10 @@ #include "example/roundtrip/rest/client.h" #include "example/roundtrip/rest/server.h" -#include "smithy/client/config.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/socket_transport.h" -#include "smithy/testing/tls_test_identity.h" +#include "opal/client/config.h" +#include "opal/http/beast_transport.h" +#include "opal/http/socket_transport.h" +#include "opal/testing/tls_test_identity.h" namespace { @@ -105,9 +105,9 @@ void BM_BeastRoundTrip(benchmark::State& state) { return; } const std::string origin = "http://127.0.0.1:" + std::to_string(transport.port()); - auto client = MakeClient(origin, std::make_shared( - opal::http::BeastHttpClient::Options{ - .host = "127.0.0.1", .port = transport.port()})); + auto client = MakeClient( + origin, std::make_shared(opal::http::BeastHttpClient::Options{ + .host = "127.0.0.1", .port = transport.port()})); RunLoop(state, client); transport.Stop(); } @@ -116,20 +116,20 @@ BENCHMARK(BM_BeastRoundTrip); void BM_BeastTlsRoundTrip(benchmark::State& state) { example::roundtrip::rest::RoundTripRestServer server(std::make_shared()); opal::http::BeastServerTransport transport({.port = 0, - .threads = 2, - .tls_certificate_chain_pem = kTestCertificatePem, - .tls_private_key_pem = kTestPrivateKeyPem}); + .threads = 2, + .tls_certificate_chain_pem = kTestCertificatePem, + .tls_private_key_pem = kTestPrivateKeyPem}); if (!transport.Start(server.Handler()).ok()) { state.SkipWithError("beast tls server failed to start"); return; } const std::string origin = "https://127.0.0.1:" + std::to_string(transport.port()); - auto client = MakeClient(origin, std::make_shared( - opal::http::BeastHttpClient::Options{ - .host = "127.0.0.1", - .port = transport.port(), - .tls = true, - .tls_options = {.ca_pem = kTestCertificatePem}})); + auto client = MakeClient( + origin, std::make_shared(opal::http::BeastHttpClient::Options{ + .host = "127.0.0.1", + .port = transport.port(), + .tls = true, + .tls_options = {.ca_pem = kTestCertificatePem}})); RunLoop(state, client); transport.Stop(); } diff --git a/benchmarks/request_benchmark.cc b/benchmarks/request_benchmark.cc index 93b1f504..b1ccc97e 100644 --- a/benchmarks/request_benchmark.cc +++ b/benchmarks/request_benchmark.cc @@ -18,8 +18,8 @@ #include "example/roundtrip/rest/server.h" #include "example/roundtrip/rpc/client.h" #include "example/roundtrip/rpc/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace { diff --git a/benchmarks/serde_benchmark.cc b/benchmarks/serde_benchmark.cc index 0ca4c998..ca160df0 100644 --- a/benchmarks/serde_benchmark.cc +++ b/benchmarks/serde_benchmark.cc @@ -12,10 +12,10 @@ #include "example/roundtrip/rest/serde.h" #include "example/roundtrip/rest/types.h" -#include "smithy/cbor/cbor.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/json/json.h" +#include "opal/cbor/cbor.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/json/json.h" namespace { diff --git a/codegen/compile-tests/streaming_compile_test.cc b/codegen/compile-tests/streaming_compile_test.cc index 00730b57..daf4d60a 100644 --- a/codegen/compile-tests/streaming_compile_test.cc +++ b/codegen/compile-tests/streaming_compile_test.cc @@ -30,14 +30,14 @@ #include "compile/streaming/jsonrpc/server.h" #include "compile/streaming/rest/client.h" #include "compile/streaming/rest/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/client/config.h" -#include "smithy/core/document.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/http/loopback.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" +#include "opal/cbor/cbor.h" +#include "opal/client/config.h" +#include "opal/core/document.h" +#include "opal/eventstream/envelope.h" +#include "opal/http/loopback.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" namespace { diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ClientGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ClientGenerator.java index c2a762d9..b877c595 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ClientGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ClientGenerator.java @@ -43,20 +43,20 @@ private void writeHeader(CppWriter w) { w.addInclude(""); w.addInclude(""); w.addInclude("\"" + context.settings().includePrefix() + "/types.h\""); - w.addInclude("\"smithy/client/config.h\""); - w.addInclude("\"smithy/core/outcome.h\""); - w.addInclude("\"smithy/http/transport.h\""); + w.addInclude("\"opal/client/config.h\""); + w.addInclude("\"opal/core/outcome.h\""); + w.addInclude("\"opal/http/transport.h\""); String name = clientName(); if (!streamingOperations().isEmpty()) { - w.addInclude("\"smithy/eventstream/event_stream.h\""); + w.addInclude("\"opal/eventstream/event_stream.h\""); } List paginated = operations().stream().filter(op -> pagination(op).isPresent()).toList(); if (!paginated.isEmpty()) { w.addInclude(""); w.addInclude(""); - w.addInclude("\"smithy/client/pagination.h\""); + w.addInclude("\"opal/client/pagination.h\""); for (OperationShape operation : paginated) { w.write("class $L;", paginatorName(operation)); } @@ -164,7 +164,7 @@ private void writeHeader(CppWriter w) { w.write("opal::Outcome> Next();", outputType); w.write(""); w.write("using Page = $L;", outputType); - w.write("/// Single-pass range over pages — contract in smithy/client/pagination.h."); + w.write("/// Single-pass range over pages — contract in opal/client/pagination.h."); String iterator = "opal::PageIterator<" + paginatorName(operation) + ">"; w.write("$1L begin() { return $1L(this); }", iterator); w.write("$L end() { return {}; }", iterator); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppSymbolProvider.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppSymbolProvider.java index 55d9a94d..4272f847 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppSymbolProvider.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppSymbolProvider.java @@ -38,7 +38,7 @@ * *

Each returned {@link Symbol}'s name is the full C++ type text; the headers it needs are * carried in the {@code headers} property (angle form {@code } or quote form {@code - * "smithy/core/blob.h"}). + * "opal/core/blob.h"}). */ final class CppSymbolProvider implements SymbolProvider { @@ -101,7 +101,7 @@ Symbol toMemberSymbol(MemberShape member) { boolean plain = MemberDefaults.plain(model, member); if (recursion.isBoxed(member)) { name = "opal::Boxed<" + name + ">"; - headers.add("\"smithy/core/boxed.h\""); + headers.add("\"opal/core/boxed.h\""); } else if (plain) { return target; } @@ -247,7 +247,7 @@ protected Symbol getDefault(Shape shape) { @Override public Symbol blobShape(BlobShape shape) { - return builder("opal::Blob", Set.of("\"smithy/core/blob.h\"")).build(); + return builder("opal::Blob", Set.of("\"opal/core/blob.h\"")).build(); } @Override @@ -312,12 +312,12 @@ public Symbol intEnumShape(IntEnumShape shape) { @Override public Symbol timestampShape(TimestampShape shape) { - return builder("opal::Timestamp", Set.of("\"smithy/core/timestamp.h\"")).build(); + return builder("opal::Timestamp", Set.of("\"opal/core/timestamp.h\"")).build(); } @Override public Symbol documentShape(DocumentShape shape) { - return builder("opal::Document", Set.of("\"smithy/core/document.h\"")).build(); + return builder("opal::Document", Set.of("\"opal/core/document.h\"")).build(); } @Override @@ -340,7 +340,7 @@ public Symbol mapShape(MapShape shape) { @Override public Symbol structureShape(StructureShape shape) { if (shape.getId().toString().equals("smithy.api#Unit")) { - return builder("opal::Unit", Set.of("\"smithy/core/outcome.h\"")).build(); + return builder("opal::Unit", Set.of("\"opal/core/outcome.h\"")).build(); } return declared(shape); } diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppWriter.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppWriter.java index ed92449c..fa632417 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppWriter.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/CppWriter.java @@ -65,7 +65,7 @@ public CppWriter apply(String filename, String namespace) { } } - /** Records an include in angle ({@code }) or quote ({@code "smithy/x.h"}) form. */ + /** Records an include in angle ({@code }) or quote ({@code "opal/x.h"}) form. */ public CppWriter addInclude(String include) { getImportContainer().add(include); return this; diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/EventStreamCodeGen.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/EventStreamCodeGen.java index 9268489b..21c7b129 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/EventStreamCodeGen.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/EventStreamCodeGen.java @@ -24,7 +24,7 @@ * Event-stream detection, validation, and emission shared by the client and server generators * (ADR-0016): an operation is streaming when its input or output carries an event-stream union * (@streaming blobs stay unmodeled — {@link EventStreamIndex} only indexes unions). The runtime - * owns the envelope (smithy/eventstream/envelope.h); this class emits only the member-name dispatch + * owns the envelope (opal/eventstream/envelope.h); this class emits only the member-name dispatch * and serde calls around it — one {@code EncodeEvent}/{@code DecodeEvent} pair per * streaming operation per wire end, with the protocol supplying the payload codec expressions. */ @@ -360,9 +360,9 @@ static void writeClientStreamHelpers( ProtocolGenerator protocol, List streamingOperations, String clientName) { - w.addInclude("\"smithy/eventstream/envelope.h\""); - w.addInclude("\"smithy/eventstream/event_stream.h\""); - w.addInclude("\"smithy/http/websocket.h\""); + w.addInclude("\"opal/eventstream/envelope.h\""); + w.addInclude("\"opal/eventstream/event_stream.h\""); + w.addInclude("\"opal/http/websocket.h\""); w.addInclude(""); w.write("// Dials the WebSocket a streaming operation rides (ADR-0016): host, port, and"); w.write("// TLS come from the same endpoint the unary transport uses (nothing is"); @@ -412,9 +412,9 @@ static void writeServerStreamHelpers( ServiceShape service, ProtocolGenerator protocol, List streamingOperations) { - w.addInclude("\"smithy/eventstream/envelope.h\""); - w.addInclude("\"smithy/http/websocket.h\""); - w.addInclude("\"smithy/eventstream/async_event_stream.h\""); + w.addInclude("\"opal/eventstream/envelope.h\""); + w.addInclude("\"opal/http/websocket.h\""); + w.addInclude("\"opal/eventstream/async_event_stream.h\""); w.addInclude(""); if (protocol.streamsRideJsonRpcEnvelopes()) { // The JSON-RPC-native wire (ADR-0023): the codec pairs are the shared diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonClientGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonClientGenerator.java index 2e0a400a..c8ee71ce 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonClientGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonClientGenerator.java @@ -40,9 +40,9 @@ final class HttpJsonClientGenerator { List includes() { return List.of( - "\"smithy/json/json.h\"", - "\"smithy/core/base64.h\"", - "\"smithy/http/headers.h\"", + "\"opal/json/json.h\"", + "\"opal/core/base64.h\"", + "\"opal/http/headers.h\"", "", "", ""); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonServerGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonServerGenerator.java index 5e7bab0a..a66a622c 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonServerGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/HttpJsonServerGenerator.java @@ -55,11 +55,11 @@ private static String buildResponseFunction(String opName) { List includes() { return List.of( - "\"smithy/json/json.h\"", - "\"smithy/core/base64.h\"", - "\"smithy/core/document_serde.h\"", - "\"smithy/core/blob.h\"", - "\"smithy/http/headers.h\"", + "\"opal/json/json.h\"", + "\"opal/core/base64.h\"", + "\"opal/core/document_serde.h\"", + "\"opal/core/blob.h\"", + "\"opal/http/headers.h\"", "", "", ""); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/IntegrationTestGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/IntegrationTestGenerator.java index e1d63a2c..fc50f5fe 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/IntegrationTestGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/IntegrationTestGenerator.java @@ -112,15 +112,15 @@ private void writeSource(CppWriter w) { w.addInclude(""); w.addInclude("\"" + context.settings().includePrefix() + "/client.h\""); w.addInclude("\"" + context.settings().includePrefix() + "/server.h\""); - w.addInclude("\"smithy/client/config.h\""); - w.addInclude("\"smithy/http/loopback.h\""); - w.addInclude("\"smithy/http/socket_transport.h\""); - w.addInclude("\"smithy/testing/protocol_test.h\""); + w.addInclude("\"opal/client/config.h\""); + w.addInclude("\"opal/http/loopback.h\""); + w.addInclude("\"opal/http/socket_transport.h\""); + w.addInclude("\"opal/testing/protocol_test.h\""); if (protocol.contentType().equals("application/cbor")) { - w.addInclude("\"smithy/cbor/cbor.h\""); - w.addInclude("\"smithy/core/blob.h\""); + w.addInclude("\"opal/cbor/cbor.h\""); + w.addInclude("\"opal/core/blob.h\""); } else { - w.addInclude("\"smithy/json/json.h\""); + w.addInclude("\"opal/json/json.h\""); } String name = serviceName(); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2Protocol.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2Protocol.java index 8b83d2b4..cf6cdae5 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2Protocol.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2Protocol.java @@ -83,7 +83,7 @@ public List runtimeDeps() { @Override public List clientIncludes() { - return List.of("\"smithy/json/json.h\"", "\"smithy/core/document.h\""); + return List.of("\"opal/json/json.h\"", "\"opal/core/document.h\""); } @Override @@ -253,8 +253,7 @@ public void writeStreamSessionRoutes( @Override public List serverIncludes() { - return List.of( - "\"smithy/json/json.h\"", "\"smithy/core/document.h\"", "\"smithy/http/headers.h\""); + return List.of("\"opal/json/json.h\"", "\"opal/core/document.h\"", "\"opal/http/headers.h\""); } @Override diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2StreamCodeGen.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2StreamCodeGen.java index a3c508e2..6c601690 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2StreamCodeGen.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/JsonRpc2StreamCodeGen.java @@ -28,7 +28,7 @@ private JsonRpc2StreamCodeGen() {} * the opening-envelope parse with the unary endpoint's exact refusal strings. */ static void writeSharedServerHelpers(CppWriter w) { - w.addInclude("\"smithy/eventstream/jsonrpc_stream_socket.h\""); + w.addInclude("\"opal/eventstream/jsonrpc_stream_socket.h\""); w.write("// One JSON-RPC envelope as the raw-text message the stream wire carries"); w.write("// (ADR-0023): the unary emitters build the envelope, streams reuse their"); w.write("// bodies verbatim — one error identity, one spelling."); @@ -327,7 +327,7 @@ static void writeStreamingOperationBody( ServiceShape service, ProtocolGenerator protocol, OperationShape operation) { - w.addInclude("\"smithy/eventstream/jsonrpc_stream_socket.h\""); + w.addInclude("\"opal/eventstream/jsonrpc_stream_socket.h\""); StructureShape input = ProtocolSupport.inputShape(context, operation); String op = EventStreamCodeGen.opName(operation); w.write("opal::http::WebSocketDialRequest request;"); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolSupport.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolSupport.java index abbdbe41..fb458a85 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolSupport.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolSupport.java @@ -247,7 +247,7 @@ static void writeRequestCompression( if (!gzipCompressed(operation)) { return; } - w.addInclude("\"smithy/compression/gzip.h\""); + w.addInclude("\"opal/compression/gzip.h\""); w.addInclude(""); w.write("// @requestCompression(gzip): applied last, appended to Content-Encoding."); w.openBlock( @@ -281,7 +281,7 @@ static void writeRequestDecompression( */ static void writeGzipRequestDecode( CppWriter w, String errorFn, String status, String errorCode, String extraArgs) { - w.addInclude("\"smithy/compression/gzip.h\""); + w.addInclude("\"opal/compression/gzip.h\""); w.write("// @requestCompression(gzip): decode before parsing."); w.openBlock( "if (const auto request_encoding = request.headers.Get(\"content-encoding\"); " @@ -604,7 +604,7 @@ static List sharedServerIncludes(CppContext context) { return List.of( "\"" + context.settings().includePrefix() + "/server.h\"", "\"" + context.settings().includePrefix() + "/serde.h\"", - "\"smithy/server/router.h\"", + "\"opal/server/router.h\"", "", "", "", @@ -796,11 +796,11 @@ static List sharedClientIncludes(CppContext context) { return List.of( "\"" + context.settings().includePrefix() + "/client.h\"", "\"" + context.settings().includePrefix() + "/serde.h\"", - "\"smithy/core/blob.h\"", - "\"smithy/core/document_serde.h\"", - "\"smithy/core/uuid.h\"", - "\"smithy/http/socket_transport.h\"", - "\"smithy/http/uri.h\"", + "\"opal/core/blob.h\"", + "\"opal/core/document_serde.h\"", + "\"opal/core/uuid.h\"", + "\"opal/http/socket_transport.h\"", + "\"opal/http/uri.h\"", "", "", ""); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolTestGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolTestGenerator.java index d2f76ce4..a9a40719 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolTestGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ProtocolTestGenerator.java @@ -435,7 +435,7 @@ private void writeCommonIncludes(CppWriter w) { w.addInclude(""); w.addInclude(""); w.addInclude("\"" + context.settings().includePrefix() + "/client.h\""); - w.addInclude("\"smithy/testing/protocol_test.h\""); + w.addInclude("\"opal/testing/protocol_test.h\""); } private void writeExcludedComment(CppWriter w) { diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/Rpcv2CborProtocol.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/Rpcv2CborProtocol.java index 1f850985..edaacdee 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/Rpcv2CborProtocol.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/Rpcv2CborProtocol.java @@ -34,7 +34,7 @@ public List runtimeDeps() { @Override public List clientIncludes() { - return List.of("\"smithy/cbor/cbor.h\"", "\"smithy/core/blob.h\""); + return List.of("\"opal/cbor/cbor.h\"", "\"opal/core/blob.h\""); } @Override @@ -54,7 +54,7 @@ public void writeClientHelpers(CppWriter w, CppContext context) { @Override public List serverIncludes() { - return List.of("\"smithy/cbor/cbor.h\"", "\"smithy/core/blob.h\""); + return List.of("\"opal/cbor/cbor.h\"", "\"opal/core/blob.h\""); } @Override diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SerdeGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SerdeGenerator.java index 53b647d2..bc12230d 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SerdeGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SerdeGenerator.java @@ -99,8 +99,8 @@ private String valueType(Shape shape) { } private void writeHeader(CppWriter w, List shapes) { - w.addInclude("\"smithy/core/document.h\""); - w.addInclude("\"smithy/core/outcome.h\""); + w.addInclude("\"opal/core/document.h\""); + w.addInclude("\"opal/core/outcome.h\""); w.addInclude("\"" + context.settings().includePrefix() + "/types.h\""); w.write("// Document-pivot serde for every aggregate shape in the model closure."); w.write("// Serializers never fail; deserializers return opal::Error on wire"); @@ -118,7 +118,7 @@ private void writeHeader(CppWriter w, List shapes) { private void writeSource(CppWriter w, List shapes) { w.addInclude("\"" + context.settings().includePrefix() + "/serde.h\""); - w.addInclude("\"smithy/core/document_serde.h\""); + w.addInclude("\"opal/core/document_serde.h\""); w.addInclude(""); w.addInclude(""); for (Shape shape : shapes) { diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ServerGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ServerGenerator.java index 9f738d55..0c6403eb 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ServerGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ServerGenerator.java @@ -94,14 +94,14 @@ private void rejectRouteConflicts() { private void writeHeader(CppWriter w) { w.addInclude(""); w.addInclude("\"" + context.settings().includePrefix() + "/types.h\""); - w.addInclude("\"smithy/core/outcome.h\""); - w.addInclude("\"smithy/http/transport.h\""); - w.addInclude("\"smithy/server/router.h\""); + w.addInclude("\"opal/core/outcome.h\""); + w.addInclude("\"opal/http/transport.h\""); + w.addInclude("\"opal/server/router.h\""); boolean hasStreaming = !streamingOperations().isEmpty(); if (hasStreaming) { - w.addInclude("\"smithy/eventstream/event_stream.h\""); - w.addInclude("\"smithy/eventstream/async_event_stream.h\""); - w.addInclude("\"smithy/server/websocket_router.h\""); + w.addInclude("\"opal/eventstream/event_stream.h\""); + w.addInclude("\"opal/eventstream/async_event_stream.h\""); + w.addInclude("\"opal/server/websocket_router.h\""); } String name = serviceName(); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SmokeTestGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SmokeTestGenerator.java index 9c4801a2..b12ca7da 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SmokeTestGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/SmokeTestGenerator.java @@ -141,8 +141,8 @@ private void writeSource(CppWriter w) { w.addInclude(""); w.addInclude("\"" + context.settings().includePrefix() + "/client.h\""); w.addInclude("\"" + context.settings().includePrefix() + "/server.h\""); - w.addInclude("\"smithy/client/config.h\""); - w.addInclude("\"smithy/http/loopback.h\""); + w.addInclude("\"opal/client/config.h\""); + w.addInclude("\"opal/http/loopback.h\""); String name = serviceName(); w.write("// Smoke tests for the generated $L service: the generated client calls the", name); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/TypeGenerators.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/TypeGenerators.java index 1311cbd3..91ad6775 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/TypeGenerators.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/TypeGenerators.java @@ -224,7 +224,7 @@ void generateStructure(StructureShape shape) { * named {@code out} can't shadow the sink parameter. */ private void writeStructPrinting(StructureShape shape, String name) { - writer.addInclude("").addInclude("").addInclude("\"smithy/core/print.h\""); + writer.addInclude("").addInclude("").addInclude("\"opal/core/print.h\""); writer.write("/// Debug rendering for logs and tests — for humans, never parse it."); writer.openBlock("void AppendDebugTo(std::string& out) const {"); if (shape.hasTrait(SensitiveTrait.class)) { @@ -279,7 +279,7 @@ private boolean orderable(Shape shape) { * so ordered- and unordered-container keyability never diverge. */ private static CppWriter hashEpilogue(CppWriter writer) { - writer.addInclude("").addInclude("").addInclude("\"smithy/core/hash.h\""); + writer.addInclude("").addInclude("").addInclude("\"opal/core/hash.h\""); boolean first = !writer.hasEpilogue(); CppWriter epilogue = writer.epilogue(); if (first) { @@ -512,8 +512,8 @@ static void emitTaggedVariant( String caseNameDoc, Runnable extraPublic) { writer.addInclude("").addInclude("").addInclude(""); - writer.addInclude("").addInclude("").addInclude("\"smithy/core/print.h\""); - writer.addInclude("\"smithy/core/fatal.h\""); + writer.addInclude("").addInclude("").addInclude("\"opal/core/print.h\""); + writer.addInclude("\"opal/core/fatal.h\""); writer.openBlock("class $L {", name); writer.write("public:").indent(); diff --git a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ValidationGenerator.java b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ValidationGenerator.java index 7f8dbdcf..e995cf71 100644 --- a/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ValidationGenerator.java +++ b/codegen/smithy-cpp-codegen/src/main/java/io/smithycpp/codegen/ValidationGenerator.java @@ -222,7 +222,7 @@ private static void writeValidationErrorResponse( w.addInclude(""); w.addInclude(""); w.addInclude(""); - w.addInclude("\"smithy/core/document.h\""); + w.addInclude("\"opal/core/document.h\""); w.write("// [[maybe_unused]]: only unary routes reject invalid input over HTTP; a"); w.write("// service whose operations all stream reports validation on the stream."); w.openBlock( @@ -460,7 +460,7 @@ private void writeLengthCheck( }; if (target.getType() == software.amazon.smithy.model.shapes.ShapeType.STRING || target.getType() == software.amazon.smithy.model.shapes.ShapeType.ENUM) { - w.addInclude("\"smithy/core/text.h\""); + w.addInclude("\"opal/core/text.h\""); } // A 0 lower bound can never fail (member_length is unsigned), and the dead // `< 0ULL` comparison trips -Wextra's -Wtype-limits — drop the arm, not @@ -546,7 +546,7 @@ private void writePatternCheck( CppWriter w, PatternTrait pattern, String valueExpr, String pathVar) { rejectUnsupportedPattern(pattern); String variable = "kPattern" + patternCounter++; - w.addInclude("\"smithy/core/regex.h\""); + w.addInclude("\"opal/core/regex.h\""); // opal::Regex is a linear-time engine, so no pattern/input combination // can backtrack catastrophically (ReDoS). The raw string literal keeps // the regex byte-exact; the failure message needs C++ escaping instead. diff --git a/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/CppSymbolProviderTest.java b/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/CppSymbolProviderTest.java index a9bba9a2..e6696c4b 100644 --- a/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/CppSymbolProviderTest.java +++ b/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/CppSymbolProviderTest.java @@ -71,8 +71,7 @@ void mapsSimpleShapesToCppTypes() { MemberShape data = m.expectShape(ShapeId.from("test.smithy#Sample$data")).asMemberShape().orElseThrow(); assertTrue( - CppSymbolProvider.headersOf(symbols.toMemberSymbol(data)) - .contains("\"smithy/core/blob.h\"")); + CppSymbolProvider.headersOf(symbols.toMemberSymbol(data)).contains("\"opal/core/blob.h\"")); } @Test diff --git a/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/EventStreamGeneratorTest.java b/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/EventStreamGeneratorTest.java index 6639f7ff..3da9eeb4 100644 --- a/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/EventStreamGeneratorTest.java +++ b/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/EventStreamGeneratorTest.java @@ -118,7 +118,7 @@ private static MockManifest cbor() { @Test void clientSignaturesCarryTheTypedSessionPerDirection() { String client = rest().expectFileString("/include/test/stream/client.h"); - assertTrue(client.contains("#include \"smithy/eventstream/event_stream.h\""), client); + assertTrue(client.contains("#include \"opal/eventstream/event_stream.h\""), client); // One named alias per streaming operation; the signatures use it, so // consumers never respell the two-parameter template. assertTrue( diff --git a/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/GeneratedCodeShapeTest.java b/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/GeneratedCodeShapeTest.java index 9b0afa25..7c1accb9 100644 --- a/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/GeneratedCodeShapeTest.java +++ b/codegen/smithy-cpp-codegen/src/test/java/io/smithycpp/codegen/GeneratedCodeShapeTest.java @@ -48,7 +48,7 @@ void unionAccessorsFailWithContextAndOfferSafeAlternatives() { String types = PluginTestHarness.generate(UNION_MODEL, "test.shape#Svc", "test::shape") .expectFileString("/include/test/shape/types.h"); - assertTrue(types.contains("#include \"smithy/core/fatal.h\""), types); + assertTrue(types.contains("#include \"opal/core/fatal.h\""), types); assertTrue(types.contains("require_is(1, \"pending\");"), types); assertTrue( types.contains( @@ -172,7 +172,7 @@ void generatedTypesHashForUnorderedContainers() { // namespace closes, in definition order (nested hashes before outer ones). var manifest = PluginTestHarness.generate(ORDERING_MODEL, "test.shape#Svc", "test::shape"); String types = manifest.expectFileString("/include/test/shape/types.h"); - assertTrue(types.contains("#include \"smithy/core/hash.h\""), types); + assertTrue(types.contains("#include \"opal/core/hash.h\""), types); // Structs hash member-wise through opal::HashValue (containers and // optionals have no std::hash of their own). assertTrue(types.contains("struct std::hash {"), types); @@ -211,7 +211,7 @@ void generatedTypesPrintForLoggingAndTests() { // unconditionally. var manifest = PluginTestHarness.generate(ORDERING_MODEL, "test.shape#Svc", "test::shape"); String types = manifest.expectFileString("/include/test/shape/types.h"); - assertTrue(types.contains("#include \"smithy/core/print.h\""), types); + assertTrue(types.contains("#include \"opal/core/print.h\""), types); assertTrue(types.contains("#include "), types); assertTrue(types.contains("void AppendDebugTo(std::string& out) const {"), types); assertTrue(types.contains("out += \"Pending{\";"), types); @@ -511,7 +511,7 @@ void paginatorsAreRanges() { String client = PluginTestHarness.generate(model, "test.shape#Svc", "test::shape") .expectFileString("/include/test/shape/client.h"); - assertTrue(client.contains("#include \"smithy/client/pagination.h\""), client); + assertTrue(client.contains("#include \"opal/client/pagination.h\""), client); assertTrue(client.contains("using Page = ListThingsOutput;"), client); assertTrue( client.contains( diff --git a/docs/PLAN.md b/docs/PLAN.md index 3a57a460..38220463 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -82,12 +82,12 @@ smithy-cpp/ │ ├── smithy-cpp-codegen-server/ # server-specific generation │ └── smithy-cpp-codegen-tests/ # golden tests, protocol-test generation ├── runtime/ # C++ runtime the generated code links against — Phase 1 -│ ├── include/smithy/core/ # types: Blob, Timestamp, Document, Outcome, Error -│ ├── include/smithy/json/ # JSON serde primitives (restJson1) -│ ├── include/smithy/cbor/ # CBOR serde primitives (rpcv2Cbor) -│ ├── include/smithy/http/ # HttpRequest/Response, HttpClient/HttpServer interfaces -│ ├── include/smithy/client/ # client base: config, endpoint, retry, interceptors -│ ├── include/smithy/server/ # server base: router, handler dispatch, validation +│ ├── include/opal/core/ # types: Blob, Timestamp, Document, Outcome, Error +│ ├── include/opal/json/ # JSON serde primitives (restJson1) +│ ├── include/opal/cbor/ # CBOR serde primitives (rpcv2Cbor) +│ ├── include/opal/http/ # HttpRequest/Response, HttpClient/HttpServer interfaces +│ ├── include/opal/client/ # client base: config, endpoint, retry, interceptors +│ ├── include/opal/server/ # server base: router, handler dispatch, validation │ └── src/… # implementations: curl transport, beast server, … ├── bazel/ # Bazel rules: smithy_cpp_*_library, toolchains — Phase 6 ├── MODULE.bazel # bzlmod module root (Bazel 9, bzlmod-only) @@ -124,7 +124,7 @@ before designing each subsystem, mapping its structure onto ours: | `codegen-client` + `ClientProtocolTestGenerator` | `smithy-cpp-codegen-client` + client protocol-test generation | Phase 3 | | `codegen-server` (routing, constraint traits, `ValidationException`, `ServerProtocolTestGenerator`) | `smithy-cpp-codegen-server` | Phase 4 | | `codegen-client-test` / `codegen-server-test` (Gradle projects that generate code from a corpus of test models, then compile and `cargo test` it) | our generate→compile→run test harness over the fixture corpus | Phases 2–5 | -| `rust-runtime/` crates: `aws-smithy-types`, `aws-smithy-http`, `aws-smithy-runtime`, `aws-smithy-http-server` | `runtime/` modules: `smithy/core`, `smithy/http`, `smithy/client`, `smithy/server` | Phase 1 | +| `rust-runtime/` crates: `aws-smithy-types`, `aws-smithy-http`, `aws-smithy-runtime`, `aws-smithy-http-server` | `runtime/` modules: `opal/core`, `opal/http`, `opal/client`, `opal/server` | Phase 1 | Concretely: its shared-core/client/server module split, its "generate real projects from test models and run their tests in CI" strategy, its server constraint-validation design @@ -234,19 +234,19 @@ timestamp/document edge cases, `aws-smithy-http-server` for router and rejection module is an ordinary `cc_library` Bazel target (ADR-0004). **Tasks** -- **Core types** (`smithy/core`): +- **Core types** (`opal/core`): - `Blob`, `Timestamp` (epoch-seconds / date-time / http-date parsing+formatting), `Document` (JSON-like dynamic value), `BigDecimal`/`BigInteger` placeholders. - `Outcome` (expected-like), `Error` hierarchy: `ModeledError` base, transport errors, deserialization errors; error code + message + retryability metadata. - **Serde** behind a format-agnostic reader/writer interface (both protocols' generated serde code targets the same interface shapes): - - **JSON** (`smithy/json`): thin wrappers over the JSON backend with Smithy-specific behaviors + - **JSON** (`opal/json`): thin wrappers over the JSON backend with Smithy-specific behaviors (timestamps, blobs as base64, sparse vs dense collections, unknown member skipping for forward compatibility). - - **CBOR** (`smithy/cbor`): deterministic encoder + tolerant decoder per the rpcv2Cbor spec + - **CBOR** (`opal/cbor`): deterministic encoder + tolerant decoder per the rpcv2Cbor spec (definite/indefinite lengths, tagged timestamps, unknown member skipping). -- **HTTP layer** (`smithy/http`): +- **HTTP layer** (`opal/http`): - Value types: `HttpRequest`, `HttpResponse`, `Headers` (case-insensitive), `Uri` with escaping rules matching Smithy httpLabel/httpQuery requirements. - Interfaces: `HttpClient` (async-capable: `send(request) -> future` plus sync @@ -257,9 +257,9 @@ module is an ordinary `cc_library` Bazel target (ADR-0004). - Implementations: **libcurl** `HttpClient`; **Boost.Beast/asio** `HttpServerTransport`; plus an **in-memory loopback transport** that connects an `HttpClient` directly to a server request handler with no sockets — the backbone of fast integration tests later. -- **Client base** (`smithy/client`): `ClientConfig` (endpoint, timeouts, user-agent), interceptor +- **Client base** (`opal/client`): `ClientConfig` (endpoint, timeouts, user-agent), interceptor hook points (before-send/after-receive), simple retry policy (off by default until Phase 7). -- **Server base** (`smithy/server`): `Router` (method + URI-pattern matching with literal > +- **Server base** (`opal/server`): `Router` (method + URI-pattern matching with literal > label precedence per Smithy spec), `RequestContext`, error→HTTP response mapping, and a `ValidationFailure` type for Phase 4's constraint checks. diff --git a/docs/adr/0003-error-handling.md b/docs/adr/0003-error-handling.md index ea94930e..9c440617 100644 --- a/docs/adr/0003-error-handling.md +++ b/docs/adr/0003-error-handling.md @@ -28,7 +28,7 @@ exceptions and result types, and many large consumers build with `-fno-exception - **Exceptions are contained at every boundary that must not unwind.** Nothing in the runtime lets an exception cross an `Outcome`-returning entry point or escape a transport io thread. Wire-facing callbacks in the `-fno-exceptions`-clean runtime (request handlers, readiness probes, metrics - sinks) run inside `opal::internal::Contain` (`smithy/core/exception_guard.h`), which compiles to + sinks) run inside `opal::internal::Contain` (`opal/core/exception_guard.h`), which compiles to a direct call under `-fno-exceptions`. The Beast transport — which cannot build `-fno-exceptions`, so it always has exceptions — carries its own containment: each background `io_context::run()` is wrapped in a catch-and-re-enter backstop so a stray throw drains remaining work instead of diff --git a/docs/adr/0005-phase1-transport-and-serde-scope.md b/docs/adr/0005-phase1-transport-and-serde-scope.md index 9c654f28..e58bf21a 100644 --- a/docs/adr/0005-phase1-transport-and-serde-scope.md +++ b/docs/adr/0005-phase1-transport-and-serde-scope.md @@ -15,7 +15,7 @@ runnable transports for the client↔server test harness. ## Decision 1. **Built-in minimal socket transport instead of curl/Beast for now.** - `smithy/http` ships `SocketHttpClient` and `SocketHttpServer`: a + `opal/http` ships `SocketHttpClient` and `SocketHttpServer`: a dependency-free, blocking HTTP/1.1 implementation over POSIX/winsock sockets (connection-per-request, `Connection: close`, 127.0.0.1 server binding). This fully answers PLAN open question 4's motivation — no Boost @@ -25,7 +25,7 @@ runnable transports for the client↔server test harness. (Phase 7); nothing in the generated code will depend on which transport is installed. 2. **JSON backend: nlohmann/json (BCR module), wrapped.** Only - `smithy/json`'s implementation file includes it; the public API speaks + `opal/json`'s implementation file includes it; the public API speaks `Document`. Benchmarking simdjson or others is a Phase 7 activity per PLAN §9. 3. **CBOR codec: hand-rolled** (~450 lines including a tolerant decoder). @@ -33,7 +33,7 @@ runnable transports for the client↔server test harness. requires, and the codec is small enough that owning it — with RFC 8949 test vectors and, in Phase 7, a fuzzer — beats patching around a library. 4. **Serde pivot: `Document`.** Generated (and hand-written prototype) serde - converts typed structs to/from `Document`; `smithy/json` and `smithy/cbor` + converts typed structs to/from `Document`; `opal/json` and `opal/cbor` render `Document` to bytes. `Document` carries blob and timestamp nodes so each codec can apply its wire rules (base64 vs byte string; RFC 3339 string vs tag 1). This is the simplest thing that keeps the two protocols diff --git a/docs/adr/0009-fail-fast-contract-violations.md b/docs/adr/0009-fail-fast-contract-violations.md index 0bf18769..30ca8f47 100644 --- a/docs/adr/0009-fail-fast-contract-violations.md +++ b/docs/adr/0009-fail-fast-contract-violations.md @@ -17,7 +17,7 @@ Three postures were considered: return a null/sentinel (hides bugs), debug-only ## Decision Contract violations terminate the process with a one-line message carrying the available -context, via `opal::internal::Fatal` (`smithy/core/fatal.h`): +context, via `opal::internal::Fatal` (`opal/core/fatal.h`): - `Outcome`: value-access on an error dies with the error's code and message; `value_or_die("context")` adds caller context; `error()` on a value dies naming the misuse. diff --git a/docs/adr/0010-handler-request-context.md b/docs/adr/0010-handler-request-context.md index 85167486..84309873 100644 --- a/docs/adr/0010-handler-request-context.md +++ b/docs/adr/0010-handler-request-context.md @@ -34,7 +34,7 @@ Shape 1. Every generated handler method is - `RequestContext` (the type route lambdas already thread) gains `const http::HttpRequest* request`, set by `Router::Route` for the handler call's lifetime. Through it a handler reads unmodeled headers, the inbound `traceparent` - (parse with `smithy/http/trace_context.h`), and the peer address. + (parse with `opal/http/trace_context.h`), and the peer address. - `HttpRequest` gains `peer_address` — an "ip:port" server-side annotation (the `HttpResponse::operation` precedent) stamped by both server transports; empty on the in-memory Loopback unless a test stamps its own. diff --git a/docs/adr/0012-forwarded-client-address.md b/docs/adr/0012-forwarded-client-address.md index 99aef8a0..d8bcb0bd 100644 --- a/docs/adr/0012-forwarded-client-address.md +++ b/docs/adr/0012-forwarded-client-address.md @@ -39,7 +39,7 @@ Placement options considered: ## Decision -`smithy/http/forwarded.h` ships two pieces, both pure and SDK-free: +`opal/http/forwarded.h` ships two pieces, both pure and SDK-free: - **`TrustedProxies`** — the deployment's trust boundary as a CIDR set (`{"10.0.0.0/8", "2600:1f00::/24"}`; a bare address is a host route). diff --git a/docs/adr/0014-event-stream-framing-first.md b/docs/adr/0014-event-stream-framing-first.md index 19e18e42..c6586907 100644 --- a/docs/adr/0014-event-stream-framing-first.md +++ b/docs/adr/0014-event-stream-framing-first.md @@ -34,7 +34,7 @@ The slicing question is where to start. Three candidates: **Wire-format-first.** Phase 8 lands in slices, each independently shippable and tested in the house pattern: -1. **This slice: the framing codec** — `smithy/eventstream/frame.h`, a +1. **This slice: the framing codec** — `opal/eventstream/frame.h`, a hand-rolled encoder/decoder for the event-stream message format, in the same mold as the CBOR codec and the extracted HTTP/1 parser: pure functions over buffers, no I/O, hostile-input test bank, libFuzzer diff --git a/docs/adr/0024-runtime-not-named-after-the-idl.md b/docs/adr/0024-runtime-not-named-after-the-idl.md index dcda2634..a55b94ce 100644 --- a/docs/adr/0024-runtime-not-named-after-the-idl.md +++ b/docs/adr/0024-runtime-not-named-after-the-idl.md @@ -93,5 +93,5 @@ and the goldens regenerate from them. - Wire-visible strings (metric names, log-line keys, headers) never carry the IDL's name; the audit that produced this ADR checked them and the metrics fix in #199 was the only instance. -- `docs/versioning.md`'s compatibility surface #3 reads - `runtime/include/smithy/**` until the include-root PR moves it. +- `docs/versioning.md`'s compatibility surface #3 read + `runtime/include/smithy/**` until the include-root PR moved it. diff --git a/docs/development.md b/docs/development.md index fdb93d51..fd604a9a 100644 --- a/docs/development.md +++ b/docs/development.md @@ -111,8 +111,8 @@ cd codegen && gradle spotlessApply ## Repository conventions -- Runtime headers live under `runtime/include/smithy//…` and are included as - `#include "smithy//….h"`. +- Runtime headers live under `runtime/include/opal//…` and are included as + `#include "opal//….h"`. - Every `cc_*` target loads rules from `@rules_cc//cc:defs.bzl` explicitly; the `--incompatible_autoload_externally` setting in `.bazelrc` exists only for third-party dependencies whose BUILD files predate Bazel 9's removal of the native C++ rules. diff --git a/docs/generated-types.md b/docs/generated-types.md index 576e66eb..a81467ce 100644 --- a/docs/generated-types.md +++ b/docs/generated-types.md @@ -68,7 +68,7 @@ compatibility contract: changes to it are breaking for consumers of generated co **not gated**: recursion and `Document` members print fine (value semantics keep the data acyclic). The runtime member types render via the same mechanism: `Blob` as size plus a bounded hex prefix (never full contents), `Timestamp` as RFC 3339, `Document` JSON-ish, - `opal::DebugString(x)`/`DebugAppend` in `smithy/core/print.h` for anything else. Debug + `opal::DebugString(x)`/`DebugAppend` in `opal/core/print.h` for anything else. Debug output is for **humans and logs only** — it is not a serialization format; never parse it, and never pin exact bytes across library versions. - **Deliberately not generated**: @@ -131,7 +131,7 @@ terminates the process with the union, requested, and engaged member named (e.g. `std::bad_variant_access`. For access that can't die, branch on `is_x()`, use `as_x_or_null()` (`if (const auto* dairy = milk.as_dairy_or_null()) …`), or `visit()` with a visitor that covers every member plus `std::monostate` for the empty state — -`opal::Overloaded` (`smithy/core/overloaded.h`) builds one from lambdas. +`opal::Overloaded` (`opal/core/overloaded.h`) builds one from lambdas. ## Serde (Phase 3) diff --git a/docs/production-guide.md b/docs/production-guide.md index ecf182d1..9af0a2dd 100644 --- a/docs/production-guide.md +++ b/docs/production-guide.md @@ -2,12 +2,12 @@ How to configure generated smithy-cpp clients and servers for production use: timeouts, retries, and request compression. Every knob lives on -`opal::ClientConfig` (`smithy/client/config.h`), so the guidance below +`opal::ClientConfig` (`opal/client/config.h`), so the guidance below applies to every generated client the same way. ```cpp #include "myservice/client.h" -#include "smithy/client/config.h" +#include "opal/client/config.h" opal::ClientConfig config; config.endpoint = "http://api.example.com:8080"; @@ -34,7 +34,7 @@ caller wait is roughly `max_attempts × timeout` plus backoff sleeps. ## Retries Every generated client sends through `opal::SendWithRetries` -(`smithy/client/retry.h`). Two failure classes are retried: +(`opal/client/retry.h`). Two failure classes are retried: - **Transport errors flagged retryable** — connection refused/reset, timeouts. @@ -106,7 +106,7 @@ the model binds them — a named header (with the trait's scheme prefix, if any) or a query parameter. A null provider leaves requests anonymous. Server-side, the matching guards ship as middleware -(`smithy/server/middleware.h`): +(`opal/server/middleware.h`): ```cpp transport.Start(opal::server::Chain( @@ -145,7 +145,7 @@ failed call's error. An empty-string token is treated as end-of-pagination ## Client interceptors -`config.interceptors` (`smithy/client/interceptor.h`) hooks user code around +`config.interceptors` (`opal/client/interceptor.h`) hooks user code around every HTTP attempt a generated client makes — auth headers, tracing ids, request/response logging — without touching generated code: @@ -175,7 +175,7 @@ the caller's view. Hooks must not throw. Generated servers expose their router as a plain `opal::http::RequestHandler`, so cross-cutting server behavior — auth checks, request logging, metrics — composes as middleware outside the -generated code (`smithy/server/middleware.h`), with any transport: +generated code (`opal/server/middleware.h`), with any transport: ```cpp WeatherServer server(handler); @@ -199,7 +199,7 @@ transport.Start(opal::server::Chain( {// Outermost: shed abusive traffic before it costs anything. The // framework derives the client behind the trust boundary and keys // admission on it — never the raw header, which any client can write - // (smithy/http/forwarded.h has the derivation contract). + // (opal/http/forwarded.h has the derivation contract). opal::server::PerClientRateLimit( [limiter](const std::string& client) { return limiter->Allow(client); }, trusted, std::chrono::seconds(30)), @@ -289,7 +289,7 @@ proxied traffic onto one key (the issue-#104 accident, config edition): const char* cidrs = std::getenv("TRUSTED_PROXY_CIDRS"); opal::http::TrustedProxies trusted = opal::http::TrustedProxies::None(); if (cidrs != nullptr) { - // the comma-list splitter from smithy/http/headers.h + // the comma-list splitter from opal/http/headers.h auto parsed = opal::http::TrustedProxies::Parse(opal::http::SplitHeaderListValues(cidrs)); if (!parsed) { /* log parsed.error(); refuse to start */ } trusted = *std::move(parsed); @@ -382,7 +382,7 @@ wrong thing. A thrown request has no response, so its `response_bytes` is 0; exception text stays on the transport's containment log, which carries the same trace id. -**Access log:** `FormatAccessLog` (`smithy/server/access_log.h`) renders an +**Access log:** `FormatAccessLog` (`opal/server/access_log.h`) renders an observation as one line of JSON. It is a pure function — no I/O, no sink, no configuration, no dependency — so the line goes wherever your logs already go, and `Observe` stays the one clock for metrics and the log alike: @@ -432,7 +432,7 @@ every sink that receives the line stamps its own, and two on one record is one more than anyone can reconcile. **Client:** two ready-made interceptors in -`smithy/client/observability.h`: +`opal/client/observability.h`: ```cpp // Metrics/logging: one callback per HTTP attempt (retries visible). @@ -448,7 +448,7 @@ config.interceptors.push_back(opal::ObserveAttempts( config.interceptors.push_back(opal::PropagateTraceContext()); ``` -`smithy/http/trace_context.h` has the underlying helpers — +`opal/http/trace_context.h` has the underlying helpers — `ParseTraceparent`, `FormatTraceparent`, `GenerateTraceContext`, `GenerateSpanId` — for building richer integrations (e.g. a server middleware that opens a span from `RequestObservation::trace_parent`). diff --git a/docs/research/client-third-party-api-gaps.md b/docs/research/client-third-party-api-gaps.md index 1477e227..004501e8 100644 --- a/docs/research/client-third-party-api-gaps.md +++ b/docs/research/client-third-party-api-gaps.md @@ -232,7 +232,7 @@ Defer: 1B/1D, Beast CONNECT, 6c, HTTP/2 - Issue [#189](https://github.com/muchq/smithy-cpp/issues/189) - ADR-0005, ADR-0007; `docs/research/libwebsockets-transport.md` -- `runtime/include/smithy/http/transport.h`, `client/config.h`, `client/retry.h` +- `runtime/include/opal/http/transport.h`, `client/config.h`, `client/retry.h` - `runtime/src/http/beast_transport.cc` (`SetupClientTlsContext`), `socket_transport.cc` - `runtime/src/client/retry.cc`; `compression/gzip.h` - `codegen/.../ClientGenerator.java` (`Create()` https rejection) diff --git a/docs/research/libwebsockets-transport.md b/docs/research/libwebsockets-transport.md index d95af1b5..39ba3513 100644 --- a/docs/research/libwebsockets-transport.md +++ b/docs/research/libwebsockets-transport.md @@ -32,7 +32,7 @@ clients, embedded/footprint-constrained targets). Concrete adoption steps are at ## What the transport layer promises today Generated code targets `HttpClient` / `HttpServerTransport` / `WebSocket` interfaces -(`runtime/include/smithy/http/transport.h`, `websocket.h`); Boost.Beast provides the +(`runtime/include/opal/http/transport.h`, `websocket.h`); Boost.Beast provides the production implementations in one TU (`runtime/src/http/beast_transport.cc`, ~2,250 lines, plus the WebSocket session), with TLS via asio-SSL compiled directly against BoringSSL (`beast_src.cc`, ADR-0007). The contracts an alternative transport must reproduce: diff --git a/docs/runtime.md b/docs/runtime.md index d5ca8051..b1822676 100644 --- a/docs/runtime.md +++ b/docs/runtime.md @@ -1,6 +1,6 @@ # smithy-cpp runtime overview -The runtime (`//runtime`, headers under `smithy/...`) is the hand-written +The runtime (`//runtime`, headers under `opal/...`) is the hand-written library that generated clients and servers link against. Generated code stays thin glue; behavior lives here (PLAN §2). Modules mirror smithy-rs's runtime crates (PLAN §3.2a). diff --git a/docs/server-guide.md b/docs/server-guide.md index 13e0bd2f..d193b493 100644 --- a/docs/server-guide.md +++ b/docs/server-guide.md @@ -36,11 +36,11 @@ class MyHandler final : public example::weather::WeatherHandler { address (`context.request->peer_address`, `"ip:port"`, empty on the in-memory Loopback), or the request's `traceparent` — always present and parseable behind a transport, since the ingress mints a root context when the client sent none (ADR-0011); parse it with - `opal::http::ParseTraceparent` and `GenerateSpanId` (`smithy/http/trace_context.h`) to + `opal::http::ParseTraceparent` and `GenerateSpanId` (`opal/http/trace_context.h`) to open child spans. `context.labels` and `context.query_params` hold the decoded routing captures. Handlers that need none of it leave the parameter unnamed. Behind a reverse proxy, derive the real client with - `opal::http::ClientAddress` over a `TrustedProxies` set (`smithy/http/forwarded.h`, + `opal::http::ClientAddress` over a `TrustedProxies` set (`opal/http/forwarded.h`, ADR-0012) instead of reading `x-forwarded-for` yourself — the raw header is client-authored. @@ -152,7 +152,7 @@ the binding protocols, on the shared `/` endpoint for jsonRpc2 (ADR-0023), whose envelope carries the routing instead. Application admission policy (auth, rate limits) composes by wrapping `Gate()`: run your -refusal first, then defer to the router's (`smithy/server/websocket_router.h` shows the +refusal first, then defer to the router's (`opal/server/websocket_router.h` shows the pattern). Constraint validation also guards streaming inputs, with one wrinkle: the labels, query, and headers arrive on the upgrade request, which the transport accepts *before* the route parses them — so a validation failure surfaces as a successful dial whose first @@ -509,7 +509,7 @@ responds with the standard 400 `ValidationException` wire shape (`message` summa the exact message formats the official validation conformance suite pins. `@internal` enum members stay accepted on the wire but are omitted from the advertised value set. -`@pattern` evaluates on a linear-time NFA engine (`smithy/core/regex.h`), so no pattern/input +`@pattern` evaluates on a linear-time NFA engine (`opal/core/regex.h`), so no pattern/input combination can backtrack catastrophically — the classic ReDoS pattern `^([0-9]+)+$` validates request-sized inputs in microseconds instead of hanging the dispatch thread. The engine covers the ECMA-262 subset Smithy patterns use; backreferences and lookaround (inherently diff --git a/docs/superpowers/plans/2026-07-08-server-middleware.md b/docs/superpowers/plans/2026-07-08-server-middleware.md index e621180c..d65d285d 100644 --- a/docs/superpowers/plans/2026-07-08-server-middleware.md +++ b/docs/superpowers/plans/2026-07-08-server-middleware.md @@ -4,7 +4,7 @@ **Goal:** Close the three middleware gaps blocking the portrait pilot — generic admission control (`Guard` + `TooManyRequests`), a static liveness endpoint (`HealthEndpoint`), and an `on_start` callback on `Observe` for in-flight gauges — per `docs/superpowers/specs/2026-07-08-server-middleware-design.md`. -**Architecture:** All three are additions to the existing dependency-free middleware module (`runtime/include/smithy/server/middleware.h` + `runtime/src/server/middleware.cc`), composed via the existing `Chain`. No new Bazel targets; no new dependencies (explicitly: no opentelemetry-cpp). One breaking signature change: `Observe` gains `on_start` as its second parameter, so `Observe(cb, now)` call sites become `Observe(cb, nullptr, now)`. +**Architecture:** All three are additions to the existing dependency-free middleware module (`runtime/include/opal/server/middleware.h` + `runtime/src/server/middleware.cc`), composed via the existing `Chain`. No new Bazel targets; no new dependencies (explicitly: no opentelemetry-cpp). One breaking signature change: `Observe` gains `on_start` as its second parameter, so `Observe(cb, now)` call sites become `Observe(cb, nullptr, now)`. **Tech Stack:** C++20, GoogleTest, Bazel. Repo: `/Users/andy/src/smithy-cpp`, branch `server-middleware` (already checked out). @@ -15,7 +15,7 @@ ### Task 1: `Guard` middleware + `TooManyRequests` reject factory **Files:** -- Modify: `runtime/include/smithy/server/middleware.h` +- Modify: `runtime/include/opal/server/middleware.h` - Modify: `runtime/src/server/middleware.cc` - Test: `runtime/tests/server/middleware_test.cc` @@ -96,7 +96,7 @@ Expected: FAIL to compile — `error: use of undeclared identifier 'Guard'` (and - [ ] **Step 3: Declare in the header** -In `runtime/include/smithy/server/middleware.h`: add `#include ` to the includes (keep the include list sorted: ``, ``, ``, ``, ``), then add after the `Chain` declaration (line 25, before `RequestObservation`): +In `runtime/include/opal/server/middleware.h`: add `#include ` to the includes (keep the include list sorted: ``, ``, ``, ``, ``), then add after the `Chain` declaration (line 25, before `RequestObservation`): ```cpp // Admission control outside the router: admit(request) true passes the @@ -157,7 +157,7 @@ Expected: PASS (all existing tests plus the 5 new ones). - [ ] **Step 6: Commit** ```bash -cd /Users/andy/src/smithy-cpp && git add runtime/include/smithy/server/middleware.h runtime/src/server/middleware.cc runtime/tests/server/middleware_test.cc && git commit -m "feat(runtime): Guard admission middleware with TooManyRequests factory" +cd /Users/andy/src/smithy-cpp && git add runtime/include/opal/server/middleware.h runtime/src/server/middleware.cc runtime/tests/server/middleware_test.cc && git commit -m "feat(runtime): Guard admission middleware with TooManyRequests factory" ``` --- @@ -165,7 +165,7 @@ cd /Users/andy/src/smithy-cpp && git add runtime/include/smithy/server/middlewar ### Task 2: `HealthEndpoint` middleware **Files:** -- Modify: `runtime/include/smithy/server/middleware.h` +- Modify: `runtime/include/opal/server/middleware.h` - Modify: `runtime/src/server/middleware.cc` - Test: `runtime/tests/server/middleware_test.cc` @@ -236,7 +236,7 @@ Expected: FAIL to compile — `error: use of undeclared identifier 'HealthEndpoi - [ ] **Step 3: Declare in the header** -In `runtime/include/smithy/server/middleware.h`, after the `TooManyRequests` declaration: +In `runtime/include/opal/server/middleware.h`, after the `TooManyRequests` declaration: ```cpp // Static liveness endpoint: answers GET (query string ignored) with @@ -279,7 +279,7 @@ Expected: PASS. - [ ] **Step 6: Commit** ```bash -cd /Users/andy/src/smithy-cpp && git add runtime/include/smithy/server/middleware.h runtime/src/server/middleware.cc runtime/tests/server/middleware_test.cc && git commit -m "feat(runtime): HealthEndpoint liveness middleware" +cd /Users/andy/src/smithy-cpp && git add runtime/include/opal/server/middleware.h runtime/src/server/middleware.cc runtime/tests/server/middleware_test.cc && git commit -m "feat(runtime): HealthEndpoint liveness middleware" ``` --- @@ -287,7 +287,7 @@ cd /Users/andy/src/smithy-cpp && git add runtime/include/smithy/server/middlewar ### Task 3: `Observe` gains `on_start` and pairs completions when dispatch throws **Files:** -- Modify: `runtime/include/smithy/server/middleware.h` +- Modify: `runtime/include/opal/server/middleware.h` - Modify: `runtime/src/server/middleware.cc` - Test: `runtime/tests/server/middleware_test.cc` (new tests + one existing call site updated) @@ -366,7 +366,7 @@ Expected: FAIL to compile — `RequestStart` undeclared, and no 3-argument `Obse - [ ] **Step 3: Update the header** -In `runtime/include/smithy/server/middleware.h`, add before the `Observe` declaration: +In `runtime/include/opal/server/middleware.h`, add before the `Observe` declaration: ```cpp // What on_start sees, before the router runs. The Smithy operation is not @@ -411,9 +411,9 @@ void CallContained(const Callback& callback, const Observation& observation, con try { callback(observation); } catch (const std::exception& e) { - std::clog << "smithy: " << which << " callback threw: " << e.what() << "\n"; + std::clog << "opal: " << which << " callback threw: " << e.what() << "\n"; } catch (...) { - std::clog << "smithy: " << which << " callback threw a non-std exception\n"; + std::clog << "opal: " << which << " callback threw a non-std exception\n"; } } @@ -489,7 +489,7 @@ Expected: PASS. - [ ] **Step 8: Commit** ```bash -cd /Users/andy/src/smithy-cpp && git add runtime/include/smithy/server/middleware.h runtime/src/server/middleware.cc runtime/tests/server/middleware_test.cc && git commit -m "feat(runtime): Observe on_start callback with paired completions on throw" +cd /Users/andy/src/smithy-cpp && git add runtime/include/opal/server/middleware.h runtime/src/server/middleware.cc runtime/tests/server/middleware_test.cc && git commit -m "feat(runtime): Observe on_start callback with paired completions on throw" ``` --- @@ -518,10 +518,10 @@ In `examples/bazel-consumer/todo_integration_test.cc`, make the include block (c #include "acme/todo/jsonrpc/client.h" #include "acme/todo/jsonrpc/server.h" #include "acme/todo/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/server/middleware.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/server/middleware.h" ``` Then append this test at the end of the anonymous namespace (after `TodoJsonRpcTest`, before the closing `} // namespace`): @@ -734,4 +734,4 @@ Expected: PASS. cd /Users/andy/src/smithy-cpp && git log --oneline main..HEAD && git diff main --stat ``` -Expected: the spec/plan docs plus five implementation commits touching exactly: `runtime/include/smithy/server/middleware.h`, `runtime/src/server/middleware.cc`, `runtime/tests/server/middleware_test.cc`, `examples/bazel-consumer/todo_integration_test.cc`, `examples/bazel-consumer/BUILD.bazel`, `docs/production-guide.md`, `CHANGELOG.md`. +Expected: the spec/plan docs plus five implementation commits touching exactly: `runtime/include/opal/server/middleware.h`, `runtime/src/server/middleware.cc`, `runtime/tests/server/middleware_test.cc`, `examples/bazel-consumer/todo_integration_test.cc`, `examples/bazel-consumer/BUILD.bazel`, `docs/production-guide.md`, `CHANGELOG.md`. diff --git a/docs/superpowers/specs/2026-07-08-server-middleware-design.md b/docs/superpowers/specs/2026-07-08-server-middleware-design.md index 6c84489c..33f59fb1 100644 --- a/docs/superpowers/specs/2026-07-08-server-middleware-design.md +++ b/docs/superpowers/specs/2026-07-08-server-middleware-design.md @@ -5,7 +5,7 @@ **Motivation:** First production pilot (migrating MoonBase's `portrait` service off meerkat) needs three capabilities meerkat provides today: rate limiting, a health endpoint, and request metrics including an in-flight gauge. This spec closes those -gaps in `smithy/server/middleware.h` without adding any dependency to the runtime — +gaps in `opal/server/middleware.h` without adding any dependency to the runtime — in particular, no opentelemetry-cpp (its protobuf/gRPC tree violates the runtime's dep-light rule; see production-guide.md "Observability"). diff --git a/docs/versioning.md b/docs/versioning.md index 03c2cc6b..4d170b8a 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -44,7 +44,7 @@ Pre-1.0 caveat (per semver): minor releases may break. Concretely: Consumers write code against generated headers; changes that break recompilation of handler implementations or client call sites are breaking. -3. **Public runtime headers** — `runtime/include/smithy/**`. Generated code +3. **Public runtime headers** — `runtime/include/opal/**`. Generated code links against these, so removals/signature changes are breaking; pure additions are not. diff --git a/examples/bazel-consumer/access_log_acceptance_test.cc b/examples/bazel-consumer/access_log_acceptance_test.cc index 1354c318..bdf517fd 100644 --- a/examples/bazel-consumer/access_log_acceptance_test.cc +++ b/examples/bazel-consumer/access_log_acceptance_test.cc @@ -27,11 +27,11 @@ #include "acme/todo/client.h" #include "acme/todo/server.h" -#include "smithy/client/config.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/forwarded.h" -#include "smithy/server/access_log.h" -#include "smithy/server/middleware.h" +#include "opal/client/config.h" +#include "opal/http/beast_transport.h" +#include "opal/http/forwarded.h" +#include "opal/server/access_log.h" +#include "opal/server/middleware.h" namespace { diff --git a/examples/bazel-consumer/async_acceptance_test.cc b/examples/bazel-consumer/async_acceptance_test.cc index 111aeb10..b3e0e015 100644 --- a/examples/bazel-consumer/async_acceptance_test.cc +++ b/examples/bazel-consumer/async_acceptance_test.cc @@ -16,11 +16,11 @@ #include #include -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/websocket.h" -#include "smithy/server/session_registry.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/frame.h" +#include "opal/http/beast_transport.h" +#include "opal/http/websocket.h" +#include "opal/server/session_registry.h" namespace { diff --git a/examples/bazel-consumer/chat_async_reconnect_server_main.cc b/examples/bazel-consumer/chat_async_reconnect_server_main.cc index 59c4a708..85eafd4f 100644 --- a/examples/bazel-consumer/chat_async_reconnect_server_main.cc +++ b/examples/bazel-consumer/chat_async_reconnect_server_main.cc @@ -17,9 +17,9 @@ #include #include "acme/chat/server.h" -#include "smithy/core/outcome.h" -#include "smithy/http/beast_transport.h" -#include "smithy/server/session_registry.h" +#include "opal/core/outcome.h" +#include "opal/http/beast_transport.h" +#include "opal/server/session_registry.h" namespace { diff --git a/examples/bazel-consumer/chat_reconnect_client_main.cc b/examples/bazel-consumer/chat_reconnect_client_main.cc index 0f4445d7..10ff00c7 100644 --- a/examples/bazel-consumer/chat_reconnect_client_main.cc +++ b/examples/bazel-consumer/chat_reconnect_client_main.cc @@ -23,9 +23,9 @@ #include #include "acme/chat/client.h" -#include "smithy/client/config.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/event_stream.h" +#include "opal/client/config.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/event_stream.h" namespace { diff --git a/examples/bazel-consumer/chat_reconnect_server_main.cc b/examples/bazel-consumer/chat_reconnect_server_main.cc index ffd6d374..8dda8320 100644 --- a/examples/bazel-consumer/chat_reconnect_server_main.cc +++ b/examples/bazel-consumer/chat_reconnect_server_main.cc @@ -16,9 +16,9 @@ #include #include "acme/chat/server.h" -#include "smithy/core/outcome.h" -#include "smithy/http/beast_transport.h" -#include "smithy/server/session_registry.h" +#include "opal/core/outcome.h" +#include "opal/http/beast_transport.h" +#include "opal/server/session_registry.h" namespace { diff --git a/examples/bazel-consumer/eventstream_consumer_test.cc b/examples/bazel-consumer/eventstream_consumer_test.cc index f2fecb2b..24cc73b7 100644 --- a/examples/bazel-consumer/eventstream_consumer_test.cc +++ b/examples/bazel-consumer/eventstream_consumer_test.cc @@ -12,10 +12,10 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" -#include "smithy/eventstream/frame.h" +#include "opal/core/blob.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" +#include "opal/eventstream/frame.h" namespace { diff --git a/examples/bazel-consumer/exception_safety_acceptance_test.cc b/examples/bazel-consumer/exception_safety_acceptance_test.cc index 79d29041..90176862 100644 --- a/examples/bazel-consumer/exception_safety_acceptance_test.cc +++ b/examples/bazel-consumer/exception_safety_acceptance_test.cc @@ -15,10 +15,10 @@ #include #include -#include "smithy/client/config.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/websocket.h" +#include "opal/client/config.h" +#include "opal/eventstream/frame.h" +#include "opal/http/beast_transport.h" +#include "opal/http/websocket.h" namespace { diff --git a/examples/bazel-consumer/head_e2e_test.cc b/examples/bazel-consumer/head_e2e_test.cc index db88d4d6..8941f349 100644 --- a/examples/bazel-consumer/head_e2e_test.cc +++ b/examples/bazel-consumer/head_e2e_test.cc @@ -25,9 +25,9 @@ #include "acme/redirect/client.h" #include "acme/redirect/server.h" -#include "smithy/client/config.h" -#include "smithy/core/error.h" -#include "smithy/http/socket_transport.h" +#include "opal/client/config.h" +#include "opal/core/error.h" +#include "opal/http/socket_transport.h" namespace { diff --git a/examples/bazel-consumer/jsonrpc_raw_peer_main.cc b/examples/bazel-consumer/jsonrpc_raw_peer_main.cc index 38f054c9..1bbf54e1 100644 --- a/examples/bazel-consumer/jsonrpc_raw_peer_main.cc +++ b/examples/bazel-consumer/jsonrpc_raw_peer_main.cc @@ -21,10 +21,10 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/websocket.h" +#include "opal/core/blob.h" +#include "opal/eventstream/frame.h" +#include "opal/http/beast_transport.h" +#include "opal/http/websocket.h" namespace { diff --git a/examples/bazel-consumer/jsonrpc_stream_client_main.cc b/examples/bazel-consumer/jsonrpc_stream_client_main.cc index 9bc783b1..47504b7d 100644 --- a/examples/bazel-consumer/jsonrpc_stream_client_main.cc +++ b/examples/bazel-consumer/jsonrpc_stream_client_main.cc @@ -21,8 +21,8 @@ #include #include "acme/tally/client.h" -#include "smithy/client/config.h" -#include "smithy/core/outcome.h" +#include "opal/client/config.h" +#include "opal/core/outcome.h" namespace { diff --git a/examples/bazel-consumer/jsonrpc_stream_server_main.cc b/examples/bazel-consumer/jsonrpc_stream_server_main.cc index e95102d0..79644f46 100644 --- a/examples/bazel-consumer/jsonrpc_stream_server_main.cc +++ b/examples/bazel-consumer/jsonrpc_stream_server_main.cc @@ -12,8 +12,8 @@ #include #include "acme/tally/server.h" -#include "smithy/core/outcome.h" -#include "smithy/http/beast_transport.h" +#include "opal/core/outcome.h" +#include "opal/http/beast_transport.h" namespace { diff --git a/examples/bazel-consumer/metrics_acceptance_test.cc b/examples/bazel-consumer/metrics_acceptance_test.cc index 7b9f0ccd..7fe4a463 100644 --- a/examples/bazel-consumer/metrics_acceptance_test.cc +++ b/examples/bazel-consumer/metrics_acceptance_test.cc @@ -17,10 +17,10 @@ #include "acme/todo/client.h" #include "acme/todo/server.h" -#include "smithy/client/config.h" -#include "smithy/http/beast_transport.h" -#include "smithy/server/metrics.h" -#include "smithy/server/middleware.h" +#include "opal/client/config.h" +#include "opal/http/beast_transport.h" +#include "opal/server/metrics.h" +#include "opal/server/middleware.h" namespace { diff --git a/examples/bazel-consumer/redirect_e2e_test.cc b/examples/bazel-consumer/redirect_e2e_test.cc index 4446a7bc..54483095 100644 --- a/examples/bazel-consumer/redirect_e2e_test.cc +++ b/examples/bazel-consumer/redirect_e2e_test.cc @@ -22,10 +22,10 @@ #include "acme/redirect/client.h" #include "acme/redirect/server.h" -#include "smithy/client/config.h" -#include "smithy/core/error.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" +#include "opal/client/config.h" +#include "opal/core/error.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" namespace { diff --git a/examples/bazel-consumer/streaming_acceptance_test.cc b/examples/bazel-consumer/streaming_acceptance_test.cc index 271a28f9..26693b9c 100644 --- a/examples/bazel-consumer/streaming_acceptance_test.cc +++ b/examples/bazel-consumer/streaming_acceptance_test.cc @@ -17,10 +17,10 @@ #include "acme/chat/client.h" #include "acme/chat/server.h" -#include "smithy/client/config.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" +#include "opal/client/config.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" namespace { diff --git a/examples/bazel-consumer/todo_beast_acceptance_test.cc b/examples/bazel-consumer/todo_beast_acceptance_test.cc index e5ce85f6..1254e328 100644 --- a/examples/bazel-consumer/todo_beast_acceptance_test.cc +++ b/examples/bazel-consumer/todo_beast_acceptance_test.cc @@ -19,10 +19,10 @@ #include "acme/todo/client.h" #include "acme/todo/server.h" -#include "smithy/client/config.h" -#include "smithy/http/beast_transport.h" -#include "smithy/testing/connection_event_recorder.h" -#include "smithy/testing/tls_test_identity.h" +#include "opal/client/config.h" +#include "opal/http/beast_transport.h" +#include "opal/testing/connection_event_recorder.h" +#include "opal/testing/tls_test_identity.h" namespace { diff --git a/examples/bazel-consumer/todo_integration_test.cc b/examples/bazel-consumer/todo_integration_test.cc index e1429d8f..64714c91 100644 --- a/examples/bazel-consumer/todo_integration_test.cc +++ b/examples/bazel-consumer/todo_integration_test.cc @@ -17,13 +17,13 @@ #include "acme/todo/jsonrpc/client.h" #include "acme/todo/jsonrpc/server.h" #include "acme/todo/server.h" -#include "smithy/client/config.h" -#include "smithy/core/error.h" -#include "smithy/http/forwarded.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/trace_context.h" -#include "smithy/server/middleware.h" +#include "opal/client/config.h" +#include "opal/core/error.h" +#include "opal/http/forwarded.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/http/trace_context.h" +#include "opal/server/middleware.h" namespace { diff --git a/examples/bazel-consumer/websocket_acceptance_test.cc b/examples/bazel-consumer/websocket_acceptance_test.cc index 572e66d5..b97a448c 100644 --- a/examples/bazel-consumer/websocket_acceptance_test.cc +++ b/examples/bazel-consumer/websocket_acceptance_test.cc @@ -12,9 +12,9 @@ #include #include -#include "smithy/eventstream/frame.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/websocket.h" +#include "opal/eventstream/frame.h" +#include "opal/http/beast_transport.h" +#include "opal/http/websocket.h" namespace { diff --git a/examples/bazel-consumer/websocket_contract_consumer_test.cc b/examples/bazel-consumer/websocket_contract_consumer_test.cc index f298f86f..91a1bc59 100644 --- a/examples/bazel-consumer/websocket_contract_consumer_test.cc +++ b/examples/bazel-consumer/websocket_contract_consumer_test.cc @@ -24,9 +24,9 @@ #include #include -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" -#include "smithy/testing/websocket_contract_test.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" +#include "opal/testing/websocket_contract_test.h" namespace { diff --git a/examples/cafe/generated/include/example/cafe/client.h b/examples/cafe/generated/include/example/cafe/client.h index f9d43bc5..13a9ae9c 100644 --- a/examples/cafe/generated/include/example/cafe/client.h +++ b/examples/cafe/generated/include/example/cafe/client.h @@ -13,12 +13,12 @@ #include #include "example/cafe/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" namespace example::cafe { diff --git a/examples/cafe/generated/include/example/cafe/serde.h b/examples/cafe/generated/include/example/cafe/serde.h index 059336e5..2488629d 100644 --- a/examples/cafe/generated/include/example/cafe/serde.h +++ b/examples/cafe/generated/include/example/cafe/serde.h @@ -4,8 +4,8 @@ #define EXAMPLE_CAFE_SERDE_H_ #include "example/cafe/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::cafe { diff --git a/examples/cafe/generated/include/example/cafe/server.h b/examples/cafe/generated/include/example/cafe/server.h index a4fda319..cc07e365 100644 --- a/examples/cafe/generated/include/example/cafe/server.h +++ b/examples/cafe/generated/include/example/cafe/server.h @@ -6,9 +6,9 @@ #include #include "example/cafe/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/core/outcome.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" namespace example::cafe { diff --git a/examples/cafe/generated/include/example/cafe/types.h b/examples/cafe/generated/include/example/cafe/types.h index ec974574..9439dec7 100644 --- a/examples/cafe/generated/include/example/cafe/types.h +++ b/examples/cafe/generated/include/example/cafe/types.h @@ -14,11 +14,11 @@ #include #include -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace example::cafe { diff --git a/examples/cafe/generated/src/client.cc b/examples/cafe/generated/src/client.cc index 8ea06e23..4efea70b 100644 --- a/examples/cafe/generated/src/client.cc +++ b/examples/cafe/generated/src/client.cc @@ -7,13 +7,13 @@ #include "example/cafe/client.h" #include "example/cafe/serde.h" -#include "smithy/cbor/cbor.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" +#include "opal/cbor/cbor.h" +#include "opal/compression/gzip.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" namespace example::cafe { diff --git a/examples/cafe/generated/src/serde.cc b/examples/cafe/generated/src/serde.cc index 7ac9bdf5..9f727d0c 100644 --- a/examples/cafe/generated/src/serde.cc +++ b/examples/cafe/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/cafe/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::cafe { diff --git a/examples/cafe/generated/src/server.cc b/examples/cafe/generated/src/server.cc index 79dcb966..02623396 100644 --- a/examples/cafe/generated/src/server.cc +++ b/examples/cafe/generated/src/server.cc @@ -9,12 +9,12 @@ #include "example/cafe/serde.h" #include "example/cafe/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/text.h" -#include "smithy/server/router.h" +#include "opal/cbor/cbor.h" +#include "opal/compression/gzip.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/text.h" +#include "opal/server/router.h" namespace example::cafe { diff --git a/examples/cafe/generated/tests/integration_test.cc b/examples/cafe/generated/tests/integration_test.cc index c737e7d9..7c516ebd 100644 --- a/examples/cafe/generated/tests/integration_test.cc +++ b/examples/cafe/generated/tests/integration_test.cc @@ -12,12 +12,12 @@ #include "example/cafe/client.h" #include "example/cafe/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/client/config.h" -#include "smithy/core/blob.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/testing/protocol_test.h" +#include "opal/cbor/cbor.h" +#include "opal/client/config.h" +#include "opal/core/blob.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/testing/protocol_test.h" namespace example::cafe { diff --git a/examples/cafe/generated/tests/smoke_test.cc b/examples/cafe/generated/tests/smoke_test.cc index 26010033..0840aa6c 100644 --- a/examples/cafe/generated/tests/smoke_test.cc +++ b/examples/cafe/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/cafe/client.h" #include "example/cafe/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::cafe { diff --git a/examples/cafe/generated_client_test.cc b/examples/cafe/generated_client_test.cc index 906e1a8d..5d4cd57b 100644 --- a/examples/cafe/generated_client_test.cc +++ b/examples/cafe/generated_client_test.cc @@ -11,9 +11,9 @@ #include "example/cafe/client.h" #include "example/cafe/serde.h" -#include "smithy/cbor/cbor.h" -#include "smithy/compression/gzip.h" -#include "smithy/http/transport.h" +#include "opal/cbor/cbor.h" +#include "opal/compression/gzip.h" +#include "opal/http/transport.h" namespace example::cafe { namespace { diff --git a/examples/chat/async_hub_server_main.cc b/examples/chat/async_hub_server_main.cc index 782898f9..3cffa107 100644 --- a/examples/chat/async_hub_server_main.cc +++ b/examples/chat/async_hub_server_main.cc @@ -26,9 +26,9 @@ #include "example/chat/server.h" #include "example/chat/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/beast_transport.h" -#include "smithy/server/session_registry.h" +#include "opal/core/outcome.h" +#include "opal/http/beast_transport.h" +#include "opal/server/session_registry.h" namespace { diff --git a/examples/chat/chat_browser_e2e_test.cc b/examples/chat/chat_browser_e2e_test.cc index da7465e9..af81ece8 100644 --- a/examples/chat/chat_browser_e2e_test.cc +++ b/examples/chat/chat_browser_e2e_test.cc @@ -27,11 +27,11 @@ #include "example/chat/client.h" #include "example/chat/server.h" +#include "opal/client/config.h" +#include "opal/eventstream/json_frame.h" +#include "opal/http/beast_transport.h" +#include "opal/server/origin_gate.h" #include "room_handler.h" -#include "smithy/client/config.h" -#include "smithy/eventstream/json_frame.h" -#include "smithy/http/beast_transport.h" -#include "smithy/server/origin_gate.h" namespace example::chat { namespace { diff --git a/examples/chat/chat_e2e_beast_test.cc b/examples/chat/chat_e2e_beast_test.cc index b356af78..c98ff465 100644 --- a/examples/chat/chat_e2e_beast_test.cc +++ b/examples/chat/chat_e2e_beast_test.cc @@ -22,11 +22,11 @@ #include "example/chat/client.h" #include "example/chat/server.h" +#include "opal/client/config.h" +#include "opal/http/beast_transport.h" +#include "opal/http/websocket.h" +#include "opal/testing/tls_test_identity.h" #include "room_handler.h" -#include "smithy/client/config.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/websocket.h" -#include "smithy/testing/tls_test_identity.h" namespace example::chat { namespace { diff --git a/examples/chat/chat_e2e_test.cc b/examples/chat/chat_e2e_test.cc index 26886d63..13880f9c 100644 --- a/examples/chat/chat_e2e_test.cc +++ b/examples/chat/chat_e2e_test.cc @@ -27,14 +27,14 @@ #include "example/chat/client.h" #include "example/chat/server.h" +#include "opal/client/config.h" +#include "opal/core/blob.h" +#include "opal/eventstream/envelope.h" +#include "opal/http/loopback.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" #include "room_handler.h" -#include "smithy/client/config.h" -#include "smithy/core/blob.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/http/loopback.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" #include "stream_test_fixture.h" namespace example::chat { @@ -200,7 +200,7 @@ TEST_F(ChatEndToEndTest, ModeledMidStreamErrorSurfacesTypedOnTheClient) { TEST_F(ChatEndToEndTest, UnknownEventTypeIsATerminalSerializationError) { // Hold the far end raw: no serve thread, so the test can speak the - // envelope convention (smithy/eventstream/envelope.h) at the generated + // envelope convention (opal/eventstream/envelope.h) at the generated // client directly. serve_far_end_ = false; ConverseInput input; diff --git a/examples/chat/generated/include/example/chat/client.h b/examples/chat/generated/include/example/chat/client.h index 38edcf02..71961dd7 100644 --- a/examples/chat/generated/include/example/chat/client.h +++ b/examples/chat/generated/include/example/chat/client.h @@ -13,13 +13,13 @@ #include #include "example/chat/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/eventstream/event_stream.h" +#include "opal/http/transport.h" namespace example::chat { diff --git a/examples/chat/generated/include/example/chat/serde.h b/examples/chat/generated/include/example/chat/serde.h index c0d93fc2..1e48c2c8 100644 --- a/examples/chat/generated/include/example/chat/serde.h +++ b/examples/chat/generated/include/example/chat/serde.h @@ -6,8 +6,8 @@ #include #include "example/chat/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::chat { diff --git a/examples/chat/generated/include/example/chat/server.h b/examples/chat/generated/include/example/chat/server.h index b62fd1e2..a4573cb0 100644 --- a/examples/chat/generated/include/example/chat/server.h +++ b/examples/chat/generated/include/example/chat/server.h @@ -6,12 +6,12 @@ #include #include "example/chat/types.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" -#include "smithy/server/websocket_router.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/event_stream.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" +#include "opal/server/websocket_router.h" namespace example::chat { diff --git a/examples/chat/generated/include/example/chat/types.h b/examples/chat/generated/include/example/chat/types.h index e3ec7f2f..ce47190f 100644 --- a/examples/chat/generated/include/example/chat/types.h +++ b/examples/chat/generated/include/example/chat/types.h @@ -14,9 +14,9 @@ #include #include -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" namespace example::chat { diff --git a/examples/chat/generated/src/client.cc b/examples/chat/generated/src/client.cc index cc7b7366..c2c4986e 100644 --- a/examples/chat/generated/src/client.cc +++ b/examples/chat/generated/src/client.cc @@ -13,17 +13,17 @@ #include "example/chat/client.h" #include "example/chat/serde.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/http/headers.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/http/websocket.h" -#include "smithy/json/json.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/event_stream.h" +#include "opal/http/headers.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/http/websocket.h" +#include "opal/json/json.h" namespace example::chat { diff --git a/examples/chat/generated/src/serde.cc b/examples/chat/generated/src/serde.cc index d009702b..d1e162ef 100644 --- a/examples/chat/generated/src/serde.cc +++ b/examples/chat/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/chat/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::chat { diff --git a/examples/chat/generated/src/server.cc b/examples/chat/generated/src/server.cc index 0d4d404e..3b1a6147 100644 --- a/examples/chat/generated/src/server.cc +++ b/examples/chat/generated/src/server.cc @@ -14,15 +14,15 @@ #include "example/chat/serde.h" #include "example/chat/server.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/http/headers.h" -#include "smithy/http/websocket.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/envelope.h" +#include "opal/http/headers.h" +#include "opal/http/websocket.h" +#include "opal/json/json.h" +#include "opal/server/router.h" namespace example::chat { diff --git a/examples/chat/generated/tests/integration_test.cc b/examples/chat/generated/tests/integration_test.cc index 2fffd276..e469af4c 100644 --- a/examples/chat/generated/tests/integration_test.cc +++ b/examples/chat/generated/tests/integration_test.cc @@ -12,11 +12,11 @@ #include "example/chat/client.h" #include "example/chat/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace example::chat { diff --git a/examples/chat/generated/tests/smoke_test.cc b/examples/chat/generated/tests/smoke_test.cc index b907529b..b9179f94 100644 --- a/examples/chat/generated/tests/smoke_test.cc +++ b/examples/chat/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/chat/client.h" #include "example/chat/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::chat { diff --git a/examples/chat/hub_client_main.cc b/examples/chat/hub_client_main.cc index 1a2512db..e99352cf 100644 --- a/examples/chat/hub_client_main.cc +++ b/examples/chat/hub_client_main.cc @@ -30,9 +30,9 @@ #include #include "example/chat/client.h" -#include "smithy/client/config.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/event_stream.h" +#include "opal/client/config.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/event_stream.h" namespace { diff --git a/examples/chat/hub_e2e_test.cc b/examples/chat/hub_e2e_test.cc index c3f49b79..a4a230d2 100644 --- a/examples/chat/hub_e2e_test.cc +++ b/examples/chat/hub_e2e_test.cc @@ -19,11 +19,11 @@ #include "example/chat/client.h" #include "example/chat/server.h" #include "hub_handler.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" #include "stream_test_fixture.h" namespace example::chat { diff --git a/examples/chat/hub_handler.h b/examples/chat/hub_handler.h index eb4329b8..5117621c 100644 --- a/examples/chat/hub_handler.h +++ b/examples/chat/hub_handler.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EXAMPLES_CHAT_HUB_HANDLER_H_ -#define SMITHY_EXAMPLES_CHAT_HUB_HANDLER_H_ +#ifndef OPAL_EXAMPLES_CHAT_HUB_HANDLER_H_ +#define OPAL_EXAMPLES_CHAT_HUB_HANDLER_H_ // The multi-client hub (issue #112): the consumer pattern the Go-style // WebSocket hub hand-rolls, built on the two runtime primitives that make @@ -30,8 +30,8 @@ #include #include "example/chat/server.h" -#include "smithy/core/outcome.h" -#include "smithy/server/session_registry.h" +#include "opal/core/outcome.h" +#include "opal/server/session_registry.h" namespace example::chat { @@ -159,4 +159,4 @@ class HubHandler final : public ChatHandler { } // namespace example::chat -#endif // SMITHY_EXAMPLES_CHAT_HUB_HANDLER_H_ +#endif // OPAL_EXAMPLES_CHAT_HUB_HANDLER_H_ diff --git a/examples/chat/hub_server_main.cc b/examples/chat/hub_server_main.cc index 058924d4..8b18a08e 100644 --- a/examples/chat/hub_server_main.cc +++ b/examples/chat/hub_server_main.cc @@ -16,8 +16,8 @@ #include "example/chat/server.h" #include "hub_handler.h" -#include "smithy/core/outcome.h" -#include "smithy/http/beast_transport.h" +#include "opal/core/outcome.h" +#include "opal/http/beast_transport.h" int main(int argc, char** argv) { sigset_t shutdown_signals; diff --git a/examples/chat/room_handler.h b/examples/chat/room_handler.h index 20c4968f..d941de16 100644 --- a/examples/chat/room_handler.h +++ b/examples/chat/room_handler.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EXAMPLES_CHAT_ROOM_HANDLER_H_ -#define SMITHY_EXAMPLES_CHAT_ROOM_HANDLER_H_ +#ifndef OPAL_EXAMPLES_CHAT_ROOM_HANDLER_H_ +#define OPAL_EXAMPLES_CHAT_ROOM_HANDLER_H_ // The reference ChatHandler both e2e suites drive — chat_e2e_test.cc through // the in-memory pair and chat_e2e_beast_test.cc over real WebSockets, one @@ -10,7 +10,7 @@ #include #include "example/chat/server.h" -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" namespace example::chat { @@ -71,4 +71,4 @@ class RoomHandler final : public ChatHandler { } // namespace example::chat -#endif // SMITHY_EXAMPLES_CHAT_ROOM_HANDLER_H_ +#endif // OPAL_EXAMPLES_CHAT_ROOM_HANDLER_H_ diff --git a/examples/chat/stream_test_fixture.h b/examples/chat/stream_test_fixture.h index d97e68d9..369c18b9 100644 --- a/examples/chat/stream_test_fixture.h +++ b/examples/chat/stream_test_fixture.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EXAMPLES_CHAT_STREAM_TEST_FIXTURE_H_ -#define SMITHY_EXAMPLES_CHAT_STREAM_TEST_FIXTURE_H_ +#ifndef OPAL_EXAMPLES_CHAT_STREAM_TEST_FIXTURE_H_ +#define OPAL_EXAMPLES_CHAT_STREAM_TEST_FIXTURE_H_ // The directory's one in-memory e2e fixture — the server guide's documented // recipe (InMemoryWebSocketPair + an injected dialer), kept in a single @@ -21,12 +21,12 @@ #include "example/chat/client.h" #include "example/chat/server.h" -#include "smithy/client/config.h" -#include "smithy/core/outcome.h" -#include "smithy/http/loopback.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" +#include "opal/client/config.h" +#include "opal/core/outcome.h" +#include "opal/http/loopback.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" namespace example::chat { @@ -101,4 +101,4 @@ class StreamTestFixture : public testing::Test { } // namespace example::chat -#endif // SMITHY_EXAMPLES_CHAT_STREAM_TEST_FIXTURE_H_ +#endif // OPAL_EXAMPLES_CHAT_STREAM_TEST_FIXTURE_H_ diff --git a/examples/jsonrpc2/accumulate_handler.h b/examples/jsonrpc2/accumulate_handler.h index 45287c59..d6c1d1a1 100644 --- a/examples/jsonrpc2/accumulate_handler.h +++ b/examples/jsonrpc2/accumulate_handler.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EXAMPLES_JSONRPC2_ACCUMULATE_HANDLER_H_ -#define SMITHY_EXAMPLES_JSONRPC2_ACCUMULATE_HANDLER_H_ +#ifndef OPAL_EXAMPLES_JSONRPC2_ACCUMULATE_HANDLER_H_ +#define OPAL_EXAMPLES_JSONRPC2_ACCUMULATE_HANDLER_H_ // The reference Calculator handlers every stream suite drives — the // in-memory pair e2e and the Beast e2e, blocking and async — one place so @@ -12,7 +12,7 @@ #include #include "example/calculator/server.h" -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" namespace example::calculator { @@ -93,4 +93,4 @@ class AsyncAccumulatingCalculator final : public CalculatorAsyncHandler { } // namespace example::calculator -#endif // SMITHY_EXAMPLES_JSONRPC2_ACCUMULATE_HANDLER_H_ +#endif // OPAL_EXAMPLES_JSONRPC2_ACCUMULATE_HANDLER_H_ diff --git a/examples/jsonrpc2/generated/include/example/calculator/client.h b/examples/jsonrpc2/generated/include/example/calculator/client.h index feadd1bc..18527322 100644 --- a/examples/jsonrpc2/generated/include/example/calculator/client.h +++ b/examples/jsonrpc2/generated/include/example/calculator/client.h @@ -13,13 +13,13 @@ #include #include "example/calculator/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/eventstream/event_stream.h" +#include "opal/http/transport.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/include/example/calculator/serde.h b/examples/jsonrpc2/generated/include/example/calculator/serde.h index 38eaff64..472989b7 100644 --- a/examples/jsonrpc2/generated/include/example/calculator/serde.h +++ b/examples/jsonrpc2/generated/include/example/calculator/serde.h @@ -4,8 +4,8 @@ #define EXAMPLE_CALCULATOR_SERDE_H_ #include "example/calculator/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/include/example/calculator/server.h b/examples/jsonrpc2/generated/include/example/calculator/server.h index 35a4be0a..aceaa082 100644 --- a/examples/jsonrpc2/generated/include/example/calculator/server.h +++ b/examples/jsonrpc2/generated/include/example/calculator/server.h @@ -6,12 +6,12 @@ #include #include "example/calculator/types.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" -#include "smithy/server/websocket_router.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/event_stream.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" +#include "opal/server/websocket_router.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/include/example/calculator/types.h b/examples/jsonrpc2/generated/include/example/calculator/types.h index 316a2219..c98b7c13 100644 --- a/examples/jsonrpc2/generated/include/example/calculator/types.h +++ b/examples/jsonrpc2/generated/include/example/calculator/types.h @@ -12,9 +12,9 @@ #include #include -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/src/client.cc b/examples/jsonrpc2/generated/src/client.cc index ca17bf89..50486624 100644 --- a/examples/jsonrpc2/generated/src/client.cc +++ b/examples/jsonrpc2/generated/src/client.cc @@ -8,17 +8,17 @@ #include "example/calculator/client.h" #include "example/calculator/serde.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/eventstream/jsonrpc_stream_socket.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/http/websocket.h" -#include "smithy/json/json.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/event_stream.h" +#include "opal/eventstream/jsonrpc_stream_socket.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/http/websocket.h" +#include "opal/json/json.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/src/serde.cc b/examples/jsonrpc2/generated/src/serde.cc index 42f440ed..8a351b66 100644 --- a/examples/jsonrpc2/generated/src/serde.cc +++ b/examples/jsonrpc2/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/calculator/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/src/server.cc b/examples/jsonrpc2/generated/src/server.cc index fdabee7c..c53037db 100644 --- a/examples/jsonrpc2/generated/src/server.cc +++ b/examples/jsonrpc2/generated/src/server.cc @@ -8,14 +8,14 @@ #include "example/calculator/serde.h" #include "example/calculator/server.h" -#include "smithy/core/document.h" -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/jsonrpc_stream_socket.h" -#include "smithy/http/headers.h" -#include "smithy/http/websocket.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/core/document.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/jsonrpc_stream_socket.h" +#include "opal/http/headers.h" +#include "opal/http/websocket.h" +#include "opal/json/json.h" +#include "opal/server/router.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/tests/integration_test.cc b/examples/jsonrpc2/generated/tests/integration_test.cc index 9dafcbad..5adad9c9 100644 --- a/examples/jsonrpc2/generated/tests/integration_test.cc +++ b/examples/jsonrpc2/generated/tests/integration_test.cc @@ -12,11 +12,11 @@ #include "example/calculator/client.h" #include "example/calculator/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace example::calculator { diff --git a/examples/jsonrpc2/generated/tests/smoke_test.cc b/examples/jsonrpc2/generated/tests/smoke_test.cc index be67b6eb..131831ca 100644 --- a/examples/jsonrpc2/generated/tests/smoke_test.cc +++ b/examples/jsonrpc2/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/calculator/client.h" #include "example/calculator/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::calculator { diff --git a/examples/jsonrpc2/interop_wire_test.cc b/examples/jsonrpc2/interop_wire_test.cc index 42398b38..c6081371 100644 --- a/examples/jsonrpc2/interop_wire_test.cc +++ b/examples/jsonrpc2/interop_wire_test.cc @@ -12,10 +12,10 @@ #include "example/calculator/client.h" #include "example/calculator/server.h" -#include "smithy/client/config.h" -#include "smithy/core/document.h" -#include "smithy/http/transport.h" -#include "smithy/json/json.h" +#include "opal/client/config.h" +#include "opal/core/document.h" +#include "opal/http/transport.h" +#include "opal/json/json.h" namespace example::calculator { namespace { diff --git a/examples/jsonrpc2/stream_e2e_beast_test.cc b/examples/jsonrpc2/stream_e2e_beast_test.cc index 870247d6..750cba66 100644 --- a/examples/jsonrpc2/stream_e2e_beast_test.cc +++ b/examples/jsonrpc2/stream_e2e_beast_test.cc @@ -18,11 +18,11 @@ #include "accumulate_handler.h" #include "example/calculator/client.h" #include "example/calculator/server.h" -#include "smithy/client/config.h" -#include "smithy/core/error.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/websocket.h" -#include "smithy/testing/tls_test_identity.h" +#include "opal/client/config.h" +#include "opal/core/error.h" +#include "opal/http/beast_transport.h" +#include "opal/http/websocket.h" +#include "opal/testing/tls_test_identity.h" namespace example::calculator { namespace { diff --git a/examples/jsonrpc2/stream_e2e_test.cc b/examples/jsonrpc2/stream_e2e_test.cc index 60960864..cb9d6e97 100644 --- a/examples/jsonrpc2/stream_e2e_test.cc +++ b/examples/jsonrpc2/stream_e2e_test.cc @@ -16,8 +16,8 @@ #include "accumulate_handler.h" #include "example/calculator/client.h" #include "example/calculator/server.h" -#include "smithy/core/error.h" -#include "smithy/http/websocket_pair.h" +#include "opal/core/error.h" +#include "opal/http/websocket_pair.h" #include "stream_test_fixture.h" namespace example::calculator { diff --git a/examples/jsonrpc2/stream_test_fixture.h b/examples/jsonrpc2/stream_test_fixture.h index b50d2070..92b77c74 100644 --- a/examples/jsonrpc2/stream_test_fixture.h +++ b/examples/jsonrpc2/stream_test_fixture.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EXAMPLES_JSONRPC2_STREAM_TEST_FIXTURE_H_ -#define SMITHY_EXAMPLES_JSONRPC2_STREAM_TEST_FIXTURE_H_ +#ifndef OPAL_EXAMPLES_JSONRPC2_STREAM_TEST_FIXTURE_H_ +#define OPAL_EXAMPLES_JSONRPC2_STREAM_TEST_FIXTURE_H_ // The directory's in-memory e2e fixture, the chat stream_test_fixture // transposed to the jsonRpc2 wire (ADR-0023): a generated CalculatorClient @@ -20,12 +20,12 @@ #include "example/calculator/client.h" #include "example/calculator/server.h" -#include "smithy/client/config.h" -#include "smithy/core/outcome.h" -#include "smithy/http/loopback.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" +#include "opal/client/config.h" +#include "opal/core/outcome.h" +#include "opal/http/loopback.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" namespace example::calculator { @@ -97,4 +97,4 @@ class StreamTestFixture : public testing::Test { } // namespace example::calculator -#endif // SMITHY_EXAMPLES_JSONRPC2_STREAM_TEST_FIXTURE_H_ +#endif // OPAL_EXAMPLES_JSONRPC2_STREAM_TEST_FIXTURE_H_ diff --git a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/client.h b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/client.h index 59b217d4..15e7dc51 100644 --- a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/client.h +++ b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/client.h @@ -13,12 +13,12 @@ #include #include "example/roundtrip/jsonrpc/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/serde.h b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/serde.h index 6cdbf6ff..b21725a8 100644 --- a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/serde.h +++ b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/serde.h @@ -10,8 +10,8 @@ #include #include "example/roundtrip/jsonrpc/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/server.h b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/server.h index b14a6b1d..9845188f 100644 --- a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/server.h +++ b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/server.h @@ -6,9 +6,9 @@ #include #include "example/roundtrip/jsonrpc/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/core/outcome.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/types.h b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/types.h index fc0e5278..04d8e2b5 100644 --- a/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/types.h +++ b/examples/roundtrip/jsonrpc/generated/include/example/roundtrip/jsonrpc/types.h @@ -16,11 +16,11 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/src/client.cc b/examples/roundtrip/jsonrpc/generated/src/client.cc index 7af89bfc..b4b1eb37 100644 --- a/examples/roundtrip/jsonrpc/generated/src/client.cc +++ b/examples/roundtrip/jsonrpc/generated/src/client.cc @@ -8,14 +8,14 @@ #include "example/roundtrip/jsonrpc/client.h" #include "example/roundtrip/jsonrpc/serde.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/json/json.h" +#include "opal/compression/gzip.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/json/json.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/src/serde.cc b/examples/roundtrip/jsonrpc/generated/src/serde.cc index d997c375..aa32340c 100644 --- a/examples/roundtrip/jsonrpc/generated/src/serde.cc +++ b/examples/roundtrip/jsonrpc/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/roundtrip/jsonrpc/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/src/server.cc b/examples/roundtrip/jsonrpc/generated/src/server.cc index 9cd1f4cc..0e7e325c 100644 --- a/examples/roundtrip/jsonrpc/generated/src/server.cc +++ b/examples/roundtrip/jsonrpc/generated/src/server.cc @@ -9,11 +9,11 @@ #include "example/roundtrip/jsonrpc/serde.h" #include "example/roundtrip/jsonrpc/server.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/document.h" -#include "smithy/http/headers.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/compression/gzip.h" +#include "opal/core/document.h" +#include "opal/http/headers.h" +#include "opal/json/json.h" +#include "opal/server/router.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/tests/integration_test.cc b/examples/roundtrip/jsonrpc/generated/tests/integration_test.cc index 92e5f31d..1f418de4 100644 --- a/examples/roundtrip/jsonrpc/generated/tests/integration_test.cc +++ b/examples/roundtrip/jsonrpc/generated/tests/integration_test.cc @@ -12,11 +12,11 @@ #include "example/roundtrip/jsonrpc/client.h" #include "example/roundtrip/jsonrpc/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/jsonrpc/generated/tests/smoke_test.cc b/examples/roundtrip/jsonrpc/generated/tests/smoke_test.cc index e7bbedbd..22e7f543 100644 --- a/examples/roundtrip/jsonrpc/generated/tests/smoke_test.cc +++ b/examples/roundtrip/jsonrpc/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/roundtrip/jsonrpc/client.h" #include "example/roundtrip/jsonrpc/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::roundtrip::jsonrpc { diff --git a/examples/roundtrip/rest/api_key_wire_test.cc b/examples/roundtrip/rest/api_key_wire_test.cc index 1a48a9db..b1e6f524 100644 --- a/examples/roundtrip/rest/api_key_wire_test.cc +++ b/examples/roundtrip/rest/api_key_wire_test.cc @@ -10,8 +10,8 @@ #include #include "example/roundtrip/rest/client.h" -#include "smithy/client/config.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/http/transport.h" namespace example::roundtrip::rest { namespace { diff --git a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/client.h b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/client.h index e9013f9a..71575b96 100644 --- a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/client.h +++ b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/client.h @@ -13,12 +13,12 @@ #include #include "example/roundtrip/rest/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/serde.h b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/serde.h index ffff58a7..74778cf6 100644 --- a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/serde.h +++ b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/serde.h @@ -10,8 +10,8 @@ #include #include "example/roundtrip/rest/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/server.h b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/server.h index c93a76a5..ab15b905 100644 --- a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/server.h +++ b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/server.h @@ -6,9 +6,9 @@ #include #include "example/roundtrip/rest/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/core/outcome.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/types.h b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/types.h index 1a3051d4..7020d3e2 100644 --- a/examples/roundtrip/rest/generated/include/example/roundtrip/rest/types.h +++ b/examples/roundtrip/rest/generated/include/example/roundtrip/rest/types.h @@ -16,12 +16,12 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/src/client.cc b/examples/roundtrip/rest/generated/src/client.cc index 05baa986..88e3d946 100644 --- a/examples/roundtrip/rest/generated/src/client.cc +++ b/examples/roundtrip/rest/generated/src/client.cc @@ -13,15 +13,15 @@ #include "example/roundtrip/rest/client.h" #include "example/roundtrip/rest/serde.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/headers.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/json/json.h" +#include "opal/compression/gzip.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/headers.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/json/json.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/src/serde.cc b/examples/roundtrip/rest/generated/src/serde.cc index 8b1f1dd9..e9757f12 100644 --- a/examples/roundtrip/rest/generated/src/serde.cc +++ b/examples/roundtrip/rest/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/roundtrip/rest/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/src/server.cc b/examples/roundtrip/rest/generated/src/server.cc index 641763d3..5173f97d 100644 --- a/examples/roundtrip/rest/generated/src/server.cc +++ b/examples/roundtrip/rest/generated/src/server.cc @@ -15,16 +15,16 @@ #include "example/roundtrip/rest/serde.h" #include "example/roundtrip/rest/server.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/regex.h" -#include "smithy/core/text.h" -#include "smithy/http/headers.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/compression/gzip.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/document_serde.h" +#include "opal/core/regex.h" +#include "opal/core/text.h" +#include "opal/http/headers.h" +#include "opal/json/json.h" +#include "opal/server/router.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/tests/integration_test.cc b/examples/roundtrip/rest/generated/tests/integration_test.cc index c90ad6f9..aa1c13bf 100644 --- a/examples/roundtrip/rest/generated/tests/integration_test.cc +++ b/examples/roundtrip/rest/generated/tests/integration_test.cc @@ -12,11 +12,11 @@ #include "example/roundtrip/rest/client.h" #include "example/roundtrip/rest/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/generated/tests/smoke_test.cc b/examples/roundtrip/rest/generated/tests/smoke_test.cc index c96d7579..bb042680 100644 --- a/examples/roundtrip/rest/generated/tests/smoke_test.cc +++ b/examples/roundtrip/rest/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/roundtrip/rest/client.h" #include "example/roundtrip/rest/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::roundtrip::rest { diff --git a/examples/roundtrip/rest/numeric_bounds_wire_test.cc b/examples/roundtrip/rest/numeric_bounds_wire_test.cc index acd31db6..1b576685 100644 --- a/examples/roundtrip/rest/numeric_bounds_wire_test.cc +++ b/examples/roundtrip/rest/numeric_bounds_wire_test.cc @@ -22,10 +22,10 @@ #include "example/roundtrip/rest/client.h" #include "example/roundtrip/rest/serde.h" #include "example/roundtrip/rest/server.h" -#include "smithy/client/config.h" -#include "smithy/core/document.h" -#include "smithy/http/transport.h" -#include "smithy/json/json.h" +#include "opal/client/config.h" +#include "opal/core/document.h" +#include "opal/http/transport.h" +#include "opal/json/json.h" namespace example::roundtrip::rest { namespace { diff --git a/examples/roundtrip/rest/typed_errors_test.cc b/examples/roundtrip/rest/typed_errors_test.cc index 53bd8e0e..78f41915 100644 --- a/examples/roundtrip/rest/typed_errors_test.cc +++ b/examples/roundtrip/rest/typed_errors_test.cc @@ -13,8 +13,8 @@ #include #include "example/roundtrip/rest/client.h" -#include "smithy/core/error.h" -#include "smithy/core/overloaded.h" +#include "opal/core/error.h" +#include "opal/core/overloaded.h" namespace example::roundtrip::rest { namespace { diff --git a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/client.h b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/client.h index d318fc2d..1ba4eba6 100644 --- a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/client.h +++ b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/client.h @@ -13,12 +13,12 @@ #include #include "example/roundtrip/rpc/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/serde.h b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/serde.h index cb1f0f93..ee04c554 100644 --- a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/serde.h +++ b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/serde.h @@ -10,8 +10,8 @@ #include #include "example/roundtrip/rpc/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/server.h b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/server.h index 9af615a0..4d693523 100644 --- a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/server.h +++ b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/server.h @@ -6,9 +6,9 @@ #include #include "example/roundtrip/rpc/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/core/outcome.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/types.h b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/types.h index 52bcc883..5e841575 100644 --- a/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/types.h +++ b/examples/roundtrip/rpc/generated/include/example/roundtrip/rpc/types.h @@ -16,11 +16,11 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/src/client.cc b/examples/roundtrip/rpc/generated/src/client.cc index 6f29cc31..7dd2175f 100644 --- a/examples/roundtrip/rpc/generated/src/client.cc +++ b/examples/roundtrip/rpc/generated/src/client.cc @@ -7,13 +7,13 @@ #include "example/roundtrip/rpc/client.h" #include "example/roundtrip/rpc/serde.h" -#include "smithy/cbor/cbor.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" +#include "opal/cbor/cbor.h" +#include "opal/compression/gzip.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/src/serde.cc b/examples/roundtrip/rpc/generated/src/serde.cc index be4117d6..80e285ba 100644 --- a/examples/roundtrip/rpc/generated/src/serde.cc +++ b/examples/roundtrip/rpc/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/roundtrip/rpc/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/src/server.cc b/examples/roundtrip/rpc/generated/src/server.cc index 68a455f1..f0c2090e 100644 --- a/examples/roundtrip/rpc/generated/src/server.cc +++ b/examples/roundtrip/rpc/generated/src/server.cc @@ -9,11 +9,11 @@ #include "example/roundtrip/rpc/serde.h" #include "example/roundtrip/rpc/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/compression/gzip.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/server/router.h" +#include "opal/cbor/cbor.h" +#include "opal/compression/gzip.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/server/router.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/tests/integration_test.cc b/examples/roundtrip/rpc/generated/tests/integration_test.cc index afdd9101..2612715f 100644 --- a/examples/roundtrip/rpc/generated/tests/integration_test.cc +++ b/examples/roundtrip/rpc/generated/tests/integration_test.cc @@ -12,12 +12,12 @@ #include "example/roundtrip/rpc/client.h" #include "example/roundtrip/rpc/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/client/config.h" -#include "smithy/core/blob.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/testing/protocol_test.h" +#include "opal/cbor/cbor.h" +#include "opal/client/config.h" +#include "opal/core/blob.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/testing/protocol_test.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/generated/tests/smoke_test.cc b/examples/roundtrip/rpc/generated/tests/smoke_test.cc index b6f8d05c..f33707c4 100644 --- a/examples/roundtrip/rpc/generated/tests/smoke_test.cc +++ b/examples/roundtrip/rpc/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/roundtrip/rpc/client.h" #include "example/roundtrip/rpc/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::roundtrip::rpc { diff --git a/examples/roundtrip/rpc/no_input_body_wire_test.cc b/examples/roundtrip/rpc/no_input_body_wire_test.cc index e48f709e..458fabd7 100644 --- a/examples/roundtrip/rpc/no_input_body_wire_test.cc +++ b/examples/roundtrip/rpc/no_input_body_wire_test.cc @@ -11,8 +11,8 @@ #include #include "example/roundtrip/rpc/server.h" -#include "smithy/http/transport.h" -#include "smithy/testing/protocol_test.h" +#include "opal/http/transport.h" +#include "opal/testing/protocol_test.h" namespace example::roundtrip::rpc { namespace { diff --git a/examples/simplerestjson/generated/include/example/bookstore/client.h b/examples/simplerestjson/generated/include/example/bookstore/client.h index 841df374..fffdba29 100644 --- a/examples/simplerestjson/generated/include/example/bookstore/client.h +++ b/examples/simplerestjson/generated/include/example/bookstore/client.h @@ -13,12 +13,12 @@ #include #include "example/bookstore/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/include/example/bookstore/serde.h b/examples/simplerestjson/generated/include/example/bookstore/serde.h index 2b1add65..520224be 100644 --- a/examples/simplerestjson/generated/include/example/bookstore/serde.h +++ b/examples/simplerestjson/generated/include/example/bookstore/serde.h @@ -4,8 +4,8 @@ #define EXAMPLE_BOOKSTORE_SERDE_H_ #include "example/bookstore/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/include/example/bookstore/server.h b/examples/simplerestjson/generated/include/example/bookstore/server.h index e865bb0a..353d5607 100644 --- a/examples/simplerestjson/generated/include/example/bookstore/server.h +++ b/examples/simplerestjson/generated/include/example/bookstore/server.h @@ -6,9 +6,9 @@ #include #include "example/bookstore/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/core/outcome.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/include/example/bookstore/types.h b/examples/simplerestjson/generated/include/example/bookstore/types.h index 723d54e7..2fb02b74 100644 --- a/examples/simplerestjson/generated/include/example/bookstore/types.h +++ b/examples/simplerestjson/generated/include/example/bookstore/types.h @@ -11,8 +11,8 @@ #include #include -#include "smithy/core/hash.h" -#include "smithy/core/print.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/src/client.cc b/examples/simplerestjson/generated/src/client.cc index ac2acaeb..0eaf0cfd 100644 --- a/examples/simplerestjson/generated/src/client.cc +++ b/examples/simplerestjson/generated/src/client.cc @@ -12,14 +12,14 @@ #include "example/bookstore/client.h" #include "example/bookstore/serde.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/headers.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/json/json.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/headers.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/json/json.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/src/serde.cc b/examples/simplerestjson/generated/src/serde.cc index 6359c5b5..9a5ebcbf 100644 --- a/examples/simplerestjson/generated/src/serde.cc +++ b/examples/simplerestjson/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/bookstore/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/src/server.cc b/examples/simplerestjson/generated/src/server.cc index a8eaa490..537e8632 100644 --- a/examples/simplerestjson/generated/src/server.cc +++ b/examples/simplerestjson/generated/src/server.cc @@ -15,13 +15,13 @@ #include "example/bookstore/serde.h" #include "example/bookstore/server.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/document_serde.h" -#include "smithy/http/headers.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/document_serde.h" +#include "opal/http/headers.h" +#include "opal/json/json.h" +#include "opal/server/router.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/tests/integration_test.cc b/examples/simplerestjson/generated/tests/integration_test.cc index 482b90c4..6e8368c7 100644 --- a/examples/simplerestjson/generated/tests/integration_test.cc +++ b/examples/simplerestjson/generated/tests/integration_test.cc @@ -12,11 +12,11 @@ #include "example/bookstore/client.h" #include "example/bookstore/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace example::bookstore { diff --git a/examples/simplerestjson/generated/tests/smoke_test.cc b/examples/simplerestjson/generated/tests/smoke_test.cc index 8f95995b..e6ab5414 100644 --- a/examples/simplerestjson/generated/tests/smoke_test.cc +++ b/examples/simplerestjson/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/bookstore/client.h" #include "example/bookstore/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::bookstore { diff --git a/examples/simplerestjson/serve_main.cc b/examples/simplerestjson/serve_main.cc index 7e144139..3b71206b 100644 --- a/examples/simplerestjson/serve_main.cc +++ b/examples/simplerestjson/serve_main.cc @@ -17,8 +17,8 @@ #include "example/bookstore/server.h" #include "example/bookstore/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/beast_transport.h" +#include "opal/core/outcome.h" +#include "opal/http/beast_transport.h" namespace { diff --git a/examples/weather/BUILD.bazel b/examples/weather/BUILD.bazel index afe0e27d..a6053546 100644 --- a/examples/weather/BUILD.bazel +++ b/examples/weather/BUILD.bazel @@ -85,7 +85,7 @@ cc_test( size = "small", srcs = ["handwritten/weather_e2e_test.cc"], copts = SMITHY_COPTS, - defines = ["SMITHY_E2E_HAVE_BEAST"], + defines = ["OPAL_E2E_HAVE_BEAST"], tags = ["requires-network"], deps = [ ":weather_handwritten", diff --git a/examples/weather/generated/include/example/weather/client.h b/examples/weather/generated/include/example/weather/client.h index 2f4b4e48..b289887b 100644 --- a/examples/weather/generated/include/example/weather/client.h +++ b/examples/weather/generated/include/example/weather/client.h @@ -14,13 +14,13 @@ #include #include "example/weather/types.h" -#include "smithy/client/config.h" -#include "smithy/client/pagination.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" +#include "opal/client/config.h" +#include "opal/client/pagination.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" namespace example::weather { @@ -66,7 +66,7 @@ class ListCitiesPaginator { opal::Outcome> Next(); using Page = ListCitiesOutput; - /// Single-pass range over pages — contract in smithy/client/pagination.h. + /// Single-pass range over pages — contract in opal/client/pagination.h. opal::PageIterator begin() { return opal::PageIterator(this); } opal::PageIterator end() { return {}; } diff --git a/examples/weather/generated/include/example/weather/serde.h b/examples/weather/generated/include/example/weather/serde.h index f5c0a8b7..0220a2ec 100644 --- a/examples/weather/generated/include/example/weather/serde.h +++ b/examples/weather/generated/include/example/weather/serde.h @@ -6,8 +6,8 @@ #include #include "example/weather/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::weather { diff --git a/examples/weather/generated/include/example/weather/server.h b/examples/weather/generated/include/example/weather/server.h index 9e7def15..defac229 100644 --- a/examples/weather/generated/include/example/weather/server.h +++ b/examples/weather/generated/include/example/weather/server.h @@ -6,9 +6,9 @@ #include #include "example/weather/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/core/outcome.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" namespace example::weather { diff --git a/examples/weather/generated/include/example/weather/types.h b/examples/weather/generated/include/example/weather/types.h index 5e3fe0d0..dd207056 100644 --- a/examples/weather/generated/include/example/weather/types.h +++ b/examples/weather/generated/include/example/weather/types.h @@ -12,9 +12,9 @@ #include #include -#include "smithy/core/hash.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace example::weather { diff --git a/examples/weather/generated/src/client.cc b/examples/weather/generated/src/client.cc index e4d82ea5..d9553aa7 100644 --- a/examples/weather/generated/src/client.cc +++ b/examples/weather/generated/src/client.cc @@ -12,14 +12,14 @@ #include "example/weather/client.h" #include "example/weather/serde.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/headers.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/json/json.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/headers.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/json/json.h" namespace example::weather { diff --git a/examples/weather/generated/src/serde.cc b/examples/weather/generated/src/serde.cc index 01f1ec8e..4bf075c8 100644 --- a/examples/weather/generated/src/serde.cc +++ b/examples/weather/generated/src/serde.cc @@ -4,7 +4,7 @@ #include #include "example/weather/serde.h" -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" namespace example::weather { diff --git a/examples/weather/generated/src/server.cc b/examples/weather/generated/src/server.cc index f94552b7..69da212e 100644 --- a/examples/weather/generated/src/server.cc +++ b/examples/weather/generated/src/server.cc @@ -15,14 +15,14 @@ #include "example/weather/serde.h" #include "example/weather/server.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/regex.h" -#include "smithy/http/headers.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/document_serde.h" +#include "opal/core/regex.h" +#include "opal/http/headers.h" +#include "opal/json/json.h" +#include "opal/server/router.h" namespace example::weather { diff --git a/examples/weather/generated/tests/integration_test.cc b/examples/weather/generated/tests/integration_test.cc index 8f4ae557..0cdbce5c 100644 --- a/examples/weather/generated/tests/integration_test.cc +++ b/examples/weather/generated/tests/integration_test.cc @@ -12,11 +12,11 @@ #include "example/weather/client.h" #include "example/weather/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace example::weather { diff --git a/examples/weather/generated/tests/smoke_test.cc b/examples/weather/generated/tests/smoke_test.cc index 179cf7a4..6ec290bf 100644 --- a/examples/weather/generated/tests/smoke_test.cc +++ b/examples/weather/generated/tests/smoke_test.cc @@ -6,8 +6,8 @@ #include "example/weather/client.h" #include "example/weather/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" +#include "opal/client/config.h" +#include "opal/http/loopback.h" namespace example::weather { diff --git a/examples/weather/generated_client_e2e_test.cc b/examples/weather/generated_client_e2e_test.cc index 148fe04a..5bc24e1a 100644 --- a/examples/weather/generated_client_e2e_test.cc +++ b/examples/weather/generated_client_e2e_test.cc @@ -8,8 +8,8 @@ #include "example/weather/client.h" #include "examples/weather/handwritten/weather_server.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" namespace example::weather { namespace { diff --git a/examples/weather/generated_server_e2e_test.cc b/examples/weather/generated_server_e2e_test.cc index 9da95ede..5b82160b 100644 --- a/examples/weather/generated_server_e2e_test.cc +++ b/examples/weather/generated_server_e2e_test.cc @@ -16,12 +16,12 @@ #include "example/weather/client.h" #include "example/weather/server.h" #include "examples/weather/handwritten/weather_client.h" -#include "smithy/client/interceptor.h" -#include "smithy/client/observability.h" -#include "smithy/http/loopback.h" -#include "smithy/http/message.h" -#include "smithy/http/trace_context.h" -#include "smithy/server/middleware.h" +#include "opal/client/interceptor.h" +#include "opal/client/observability.h" +#include "opal/http/loopback.h" +#include "opal/http/message.h" +#include "opal/http/trace_context.h" +#include "opal/server/middleware.h" namespace example::weather { namespace { diff --git a/examples/weather/handwritten/weather_client.cc b/examples/weather/handwritten/weather_client.cc index 963d955b..44bb963e 100644 --- a/examples/weather/handwritten/weather_client.cc +++ b/examples/weather/handwritten/weather_client.cc @@ -2,8 +2,8 @@ #include -#include "smithy/http/socket_transport.h" -#include "smithy/json/json.h" +#include "opal/http/socket_transport.h" +#include "opal/json/json.h" namespace example::weather::handwritten { namespace { diff --git a/examples/weather/handwritten/weather_client.h b/examples/weather/handwritten/weather_client.h index 8e24ff25..9ae8afd0 100644 --- a/examples/weather/handwritten/weather_client.h +++ b/examples/weather/handwritten/weather_client.h @@ -1,13 +1,13 @@ -#ifndef SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_CLIENT_H_ -#define SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_CLIENT_H_ +#ifndef OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_CLIENT_H_ +#define OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_CLIENT_H_ #include #include #include "examples/weather/handwritten/weather_types.h" -#include "smithy/client/config.h" -#include "smithy/core/outcome.h" -#include "smithy/http/uri.h" +#include "opal/client/config.h" +#include "opal/core/outcome.h" +#include "opal/http/uri.h" namespace example::weather::handwritten { @@ -41,4 +41,4 @@ class WeatherClient { } // namespace example::weather::handwritten -#endif // SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_CLIENT_H_ +#endif // OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_CLIENT_H_ diff --git a/examples/weather/handwritten/weather_e2e_test.cc b/examples/weather/handwritten/weather_e2e_test.cc index 73165f37..bddcdca3 100644 --- a/examples/weather/handwritten/weather_e2e_test.cc +++ b/examples/weather/handwritten/weather_e2e_test.cc @@ -9,10 +9,10 @@ #include "examples/weather/handwritten/weather_client.h" #include "examples/weather/handwritten/weather_server.h" -#include "smithy/http/loopback.h" -#include "smithy/http/socket_transport.h" -#ifdef SMITHY_E2E_HAVE_BEAST -#include "smithy/http/beast_transport.h" +#include "opal/http/loopback.h" +#include "opal/http/socket_transport.h" +#ifdef OPAL_E2E_HAVE_BEAST +#include "opal/http/beast_transport.h" #endif namespace example::weather::handwritten { @@ -73,7 +73,7 @@ class WeatherEndToEndTest : public testing::TestWithParam { ASSERT_TRUE(socket_server_->Start(service_->Handler()).ok()); config.endpoint = "http://127.0.0.1:" + std::to_string(socket_server_->port()); } else { -#ifdef SMITHY_E2E_HAVE_BEAST +#ifdef OPAL_E2E_HAVE_BEAST beast_server_ = std::make_unique(); ASSERT_TRUE(beast_server_->Start(service_->Handler()).ok()); config.endpoint = "http://127.0.0.1:" + std::to_string(beast_server_->port()); @@ -88,7 +88,7 @@ class WeatherEndToEndTest : public testing::TestWithParam { void TearDown() override { if (socket_server_ != nullptr) socket_server_->Stop(); -#ifdef SMITHY_E2E_HAVE_BEAST +#ifdef OPAL_E2E_HAVE_BEAST if (beast_server_ != nullptr) beast_server_->Stop(); #endif } @@ -96,7 +96,7 @@ class WeatherEndToEndTest : public testing::TestWithParam { std::unique_ptr service_; std::shared_ptr transport_holder_; std::unique_ptr socket_server_; -#ifdef SMITHY_E2E_HAVE_BEAST +#ifdef OPAL_E2E_HAVE_BEAST std::unique_ptr beast_server_; #endif std::unique_ptr client_; @@ -147,7 +147,7 @@ TEST_P(WeatherEndToEndTest, GetCurrentTimeRoundTripsTimestamp) { EXPECT_EQ(time->time.epoch_milliseconds(), 1398796238500); } -#ifdef SMITHY_E2E_HAVE_BEAST +#ifdef OPAL_E2E_HAVE_BEAST INSTANTIATE_TEST_SUITE_P(Transports, WeatherEndToEndTest, testing::Values(Transport::kLoopback, Transport::kSocket, Transport::kBeast), diff --git a/examples/weather/handwritten/weather_server.cc b/examples/weather/handwritten/weather_server.cc index a90376d5..bde3fbd4 100644 --- a/examples/weather/handwritten/weather_server.cc +++ b/examples/weather/handwritten/weather_server.cc @@ -4,7 +4,7 @@ #include #include -#include "smithy/json/json.h" +#include "opal/json/json.h" namespace example::weather::handwritten { namespace { diff --git a/examples/weather/handwritten/weather_server.h b/examples/weather/handwritten/weather_server.h index 9cb87046..42c42ac2 100644 --- a/examples/weather/handwritten/weather_server.h +++ b/examples/weather/handwritten/weather_server.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_SERVER_H_ -#define SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_SERVER_H_ +#ifndef OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_SERVER_H_ +#define OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_SERVER_H_ #include #include "examples/weather/handwritten/weather_types.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/http/transport.h" +#include "opal/server/router.h" namespace example::weather::handwritten { @@ -37,4 +37,4 @@ class WeatherService { } // namespace example::weather::handwritten -#endif // SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_SERVER_H_ +#endif // OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_SERVER_H_ diff --git a/examples/weather/handwritten/weather_types.h b/examples/weather/handwritten/weather_types.h index f6f91019..9ba06cbc 100644 --- a/examples/weather/handwritten/weather_types.h +++ b/examples/weather/handwritten/weather_types.h @@ -2,15 +2,15 @@ // examples/weather/model/weather.smithy. This code is the design prototype // the generated output must reproduce (PLAN Phase 1); keep it boring. -#ifndef SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_TYPES_H_ -#define SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_TYPES_H_ +#ifndef OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_TYPES_H_ +#define OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_TYPES_H_ #include #include #include -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace example::weather::handwritten { @@ -86,4 +86,4 @@ inline constexpr char kNoSuchResourceCode[] = "NoSuchResource"; } // namespace example::weather::handwritten -#endif // SMITHY_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_TYPES_H_ +#endif // OPAL_EXAMPLES_WEATHER_HANDWRITTEN_WEATHER_TYPES_H_ diff --git a/fuzz/access_log_fuzz.cc b/fuzz/access_log_fuzz.cc index f9aaa509..d0e5a7c5 100644 --- a/fuzz/access_log_fuzz.cc +++ b/fuzz/access_log_fuzz.cc @@ -11,8 +11,8 @@ #include #include "nlohmann/json.hpp" -#include "smithy/server/access_log.h" -#include "smithy/server/middleware.h" +#include "opal/server/access_log.h" +#include "opal/server/middleware.h" namespace { diff --git a/fuzz/cbor_decode_fuzz.cc b/fuzz/cbor_decode_fuzz.cc index 539c95a4..666d3f36 100644 --- a/fuzz/cbor_decode_fuzz.cc +++ b/fuzz/cbor_decode_fuzz.cc @@ -4,8 +4,8 @@ #include #include -#include "smithy/cbor/cbor.h" -#include "smithy/core/blob.h" +#include "opal/cbor/cbor.h" +#include "opal/core/blob.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const auto blob = opal::Blob::FromString(std::string(reinterpret_cast(data), size)); diff --git a/fuzz/eventstream_frame_fuzz.cc b/fuzz/eventstream_frame_fuzz.cc index fadfdcc9..ec791e1d 100644 --- a/fuzz/eventstream_frame_fuzz.cc +++ b/fuzz/eventstream_frame_fuzz.cc @@ -9,7 +9,7 @@ #include #include -#include "smithy/eventstream/frame.h" +#include "opal/eventstream/frame.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const std::string_view text(reinterpret_cast(data), size); diff --git a/fuzz/eventstream_json_frame_fuzz.cc b/fuzz/eventstream_json_frame_fuzz.cc index b4ef6b93..b541f9c0 100644 --- a/fuzz/eventstream_json_frame_fuzz.cc +++ b/fuzz/eventstream_json_frame_fuzz.cc @@ -13,7 +13,7 @@ #include #include -#include "smithy/eventstream/json_frame.h" +#include "opal/eventstream/json_frame.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const std::string_view text(reinterpret_cast(data), size); diff --git a/fuzz/eventstream_jsonrpc_frame_fuzz.cc b/fuzz/eventstream_jsonrpc_frame_fuzz.cc index 89c63b1c..4fd75bc4 100644 --- a/fuzz/eventstream_jsonrpc_frame_fuzz.cc +++ b/fuzz/eventstream_jsonrpc_frame_fuzz.cc @@ -14,8 +14,8 @@ #include #include -#include "smithy/core/document.h" -#include "smithy/eventstream/jsonrpc_frame.h" +#include "opal/core/document.h" +#include "opal/eventstream/jsonrpc_frame.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const std::string_view text(reinterpret_cast(data), size); diff --git a/fuzz/forwarded_fuzz.cc b/fuzz/forwarded_fuzz.cc index a51f3bc0..0d325c89 100644 --- a/fuzz/forwarded_fuzz.cc +++ b/fuzz/forwarded_fuzz.cc @@ -10,7 +10,7 @@ #include #include -#include "smithy/http/forwarded.h" +#include "opal/http/forwarded.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { if (size == 0) { diff --git a/fuzz/gzip_fuzz.cc b/fuzz/gzip_fuzz.cc index 23f6590c..a84701bc 100644 --- a/fuzz/gzip_fuzz.cc +++ b/fuzz/gzip_fuzz.cc @@ -10,8 +10,8 @@ #include #include -#include "smithy/compression/gzip.h" -#include "smithy/compression/gzip_test_peer.h" +#include "opal/compression/gzip.h" +#include "opal/compression/gzip_test_peer.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { if (size == 0) { diff --git a/fuzz/http1_fuzz.cc b/fuzz/http1_fuzz.cc index 027a0467..b358e6a8 100644 --- a/fuzz/http1_fuzz.cc +++ b/fuzz/http1_fuzz.cc @@ -14,7 +14,7 @@ #include #include -#include "smithy/http/http1.h" +#include "opal/http/http1.h" namespace { diff --git a/fuzz/json_decode_fuzz.cc b/fuzz/json_decode_fuzz.cc index 08c5fb19..cdcca5d5 100644 --- a/fuzz/json_decode_fuzz.cc +++ b/fuzz/json_decode_fuzz.cc @@ -4,7 +4,7 @@ #include #include -#include "smithy/json/json.h" +#include "opal/json/json.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const std::string_view text(reinterpret_cast(data), size); diff --git a/fuzz/regex_fuzz.cc b/fuzz/regex_fuzz.cc index 39c7911e..edceb22a 100644 --- a/fuzz/regex_fuzz.cc +++ b/fuzz/regex_fuzz.cc @@ -7,7 +7,7 @@ #include #include -#include "smithy/core/regex.h" +#include "opal/core/regex.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const std::string_view record(reinterpret_cast(data), size); diff --git a/fuzz/server_dispatch_fuzz.cc b/fuzz/server_dispatch_fuzz.cc index 01181cac..88e05122 100644 --- a/fuzz/server_dispatch_fuzz.cc +++ b/fuzz/server_dispatch_fuzz.cc @@ -8,7 +8,7 @@ #include #include "example/weather/server.h" -#include "smithy/http/message.h" +#include "opal/http/message.h" namespace { diff --git a/fuzz/timestamp_fuzz.cc b/fuzz/timestamp_fuzz.cc index 8a9f243d..f81c9f65 100644 --- a/fuzz/timestamp_fuzz.cc +++ b/fuzz/timestamp_fuzz.cc @@ -13,7 +13,7 @@ #include #include -#include "smithy/core/timestamp.h" +#include "opal/core/timestamp.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const std::string_view text(reinterpret_cast(data), size); diff --git a/fuzz/uri_fuzz.cc b/fuzz/uri_fuzz.cc index eba2845b..2880eaa8 100644 --- a/fuzz/uri_fuzz.cc +++ b/fuzz/uri_fuzz.cc @@ -6,7 +6,7 @@ #include #include -#include "smithy/http/uri.h" +#include "opal/http/uri.h" extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) { const std::string_view text(reinterpret_cast(data), size); diff --git a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/client.h b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/client.h index d09467c1..d5aa6b05 100644 --- a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/client.h +++ b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/client.h @@ -12,14 +12,14 @@ #include #include +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/eventstream/event_stream.h" +#include "opal/http/transport.h" #include "opal/protocoltests/jsonrpc2/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/http/transport.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/serde.h b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/serde.h index 6bb94add..b813a5d6 100644 --- a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/serde.h +++ b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/serde.h @@ -7,9 +7,9 @@ #include #include +#include "opal/core/document.h" +#include "opal/core/outcome.h" #include "opal/protocoltests/jsonrpc2/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/server.h b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/server.h index 693e2c07..43f38563 100644 --- a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/server.h +++ b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/server.h @@ -5,13 +5,13 @@ #include +#include "opal/core/outcome.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/event_stream.h" +#include "opal/http/transport.h" #include "opal/protocoltests/jsonrpc2/types.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" -#include "smithy/server/websocket_router.h" +#include "opal/server/router.h" +#include "opal/server/websocket_router.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/types.h b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/types.h index fc7ad462..48ec9d05 100644 --- a/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/types.h +++ b/protocol-tests/jsonrpc2/generated/include/opal/protocoltests/jsonrpc2/types.h @@ -15,10 +15,10 @@ #include #include -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/src/client.cc b/protocol-tests/jsonrpc2/generated/src/client.cc index fd1efeb5..49ec017c 100644 --- a/protocol-tests/jsonrpc2/generated/src/client.cc +++ b/protocol-tests/jsonrpc2/generated/src/client.cc @@ -6,19 +6,19 @@ #include #include +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/event_stream.h" +#include "opal/eventstream/jsonrpc_stream_socket.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/http/websocket.h" +#include "opal/json/json.h" #include "opal/protocoltests/jsonrpc2/client.h" #include "opal/protocoltests/jsonrpc2/serde.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/eventstream/jsonrpc_stream_socket.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/http/websocket.h" -#include "smithy/json/json.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/src/serde.cc b/protocol-tests/jsonrpc2/generated/src/serde.cc index 539df7fc..ef0e6927 100644 --- a/protocol-tests/jsonrpc2/generated/src/serde.cc +++ b/protocol-tests/jsonrpc2/generated/src/serde.cc @@ -3,8 +3,8 @@ #include #include +#include "opal/core/document_serde.h" #include "opal/protocoltests/jsonrpc2/serde.h" -#include "smithy/core/document_serde.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/src/server.cc b/protocol-tests/jsonrpc2/generated/src/server.cc index 2995bc6c..f83eaf89 100644 --- a/protocol-tests/jsonrpc2/generated/src/server.cc +++ b/protocol-tests/jsonrpc2/generated/src/server.cc @@ -7,18 +7,18 @@ #include #include +#include "opal/core/document.h" +#include "opal/core/regex.h" +#include "opal/core/text.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/jsonrpc_stream_socket.h" +#include "opal/http/headers.h" +#include "opal/http/websocket.h" +#include "opal/json/json.h" #include "opal/protocoltests/jsonrpc2/serde.h" #include "opal/protocoltests/jsonrpc2/server.h" -#include "smithy/core/document.h" -#include "smithy/core/regex.h" -#include "smithy/core/text.h" -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/jsonrpc_stream_socket.h" -#include "smithy/http/headers.h" -#include "smithy/http/websocket.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/server/router.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/tests/request_tests.cc b/protocol-tests/jsonrpc2/generated/tests/request_tests.cc index 5ac297fd..964f4003 100644 --- a/protocol-tests/jsonrpc2/generated/tests/request_tests.cc +++ b/protocol-tests/jsonrpc2/generated/tests/request_tests.cc @@ -9,7 +9,7 @@ #include #include "opal/protocoltests/jsonrpc2/client.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/tests/response_tests.cc b/protocol-tests/jsonrpc2/generated/tests/response_tests.cc index d8f82e7b..9ff312aa 100644 --- a/protocol-tests/jsonrpc2/generated/tests/response_tests.cc +++ b/protocol-tests/jsonrpc2/generated/tests/response_tests.cc @@ -9,7 +9,7 @@ #include #include "opal/protocoltests/jsonrpc2/client.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/tests/server_malformed_tests.cc b/protocol-tests/jsonrpc2/generated/tests/server_malformed_tests.cc index a3b18b2b..22d0da83 100644 --- a/protocol-tests/jsonrpc2/generated/tests/server_malformed_tests.cc +++ b/protocol-tests/jsonrpc2/generated/tests/server_malformed_tests.cc @@ -10,7 +10,7 @@ #include "opal/protocoltests/jsonrpc2/client.h" #include "opal/protocoltests/jsonrpc2/server.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/tests/server_request_tests.cc b/protocol-tests/jsonrpc2/generated/tests/server_request_tests.cc index 3fd38d44..06920eb5 100644 --- a/protocol-tests/jsonrpc2/generated/tests/server_request_tests.cc +++ b/protocol-tests/jsonrpc2/generated/tests/server_request_tests.cc @@ -10,7 +10,7 @@ #include "opal/protocoltests/jsonrpc2/client.h" #include "opal/protocoltests/jsonrpc2/server.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/tests/server_response_tests.cc b/protocol-tests/jsonrpc2/generated/tests/server_response_tests.cc index 9d0bea0d..4ccc04f4 100644 --- a/protocol-tests/jsonrpc2/generated/tests/server_response_tests.cc +++ b/protocol-tests/jsonrpc2/generated/tests/server_response_tests.cc @@ -10,7 +10,7 @@ #include "opal/protocoltests/jsonrpc2/client.h" #include "opal/protocoltests/jsonrpc2/server.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/generated/tests/smoke_test.cc b/protocol-tests/jsonrpc2/generated/tests/smoke_test.cc index d4c9aad9..da43223c 100644 --- a/protocol-tests/jsonrpc2/generated/tests/smoke_test.cc +++ b/protocol-tests/jsonrpc2/generated/tests/smoke_test.cc @@ -4,10 +4,10 @@ #include #include +#include "opal/client/config.h" +#include "opal/http/loopback.h" #include "opal/protocoltests/jsonrpc2/client.h" #include "opal/protocoltests/jsonrpc2/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" namespace opal::protocoltests::jsonrpc2 { diff --git a/protocol-tests/jsonrpc2/stream_conformance_test.cc b/protocol-tests/jsonrpc2/stream_conformance_test.cc index cc7fcf1c..0ceafd2d 100644 --- a/protocol-tests/jsonrpc2/stream_conformance_test.cc +++ b/protocol-tests/jsonrpc2/stream_conformance_test.cc @@ -25,16 +25,16 @@ #include #include +#include "opal/client/config.h" +#include "opal/core/error.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/frame.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" #include "opal/protocoltests/jsonrpc2/client.h" #include "opal/protocoltests/jsonrpc2/server.h" -#include "smithy/client/config.h" -#include "smithy/core/error.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" namespace opal::protocoltests::jsonrpc2 { namespace { diff --git a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/client.h b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/client.h index 5c2ce5b4..cbf92edf 100644 --- a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/client.h +++ b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/client.h @@ -12,13 +12,13 @@ #include #include +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" #include "opal/protocoltests/rpcv2cbor/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/serde.h b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/serde.h index 3d715e01..a7088564 100644 --- a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/serde.h +++ b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/serde.h @@ -9,11 +9,11 @@ #include #include +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" +#include "opal/core/timestamp.h" #include "opal/protocoltests/rpcv2cbor/types.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" -#include "smithy/core/timestamp.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/server.h b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/server.h index 0c6c19b5..c1eea238 100644 --- a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/server.h +++ b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/server.h @@ -5,10 +5,10 @@ #include +#include "opal/core/outcome.h" +#include "opal/http/transport.h" #include "opal/protocoltests/rpcv2cbor/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/server/router.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/types.h b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/types.h index f1c9ebc0..1e3214bc 100644 --- a/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/types.h +++ b/protocol-tests/rpcv2cbor/generated/include/opal/protocoltests/rpcv2cbor/types.h @@ -16,12 +16,12 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/boxed.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/boxed.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/src/client.cc b/protocol-tests/rpcv2cbor/generated/src/client.cc index 9ed8cfcd..5500f2af 100644 --- a/protocol-tests/rpcv2cbor/generated/src/client.cc +++ b/protocol-tests/rpcv2cbor/generated/src/client.cc @@ -4,14 +4,14 @@ #include #include +#include "opal/cbor/cbor.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" #include "opal/protocoltests/rpcv2cbor/client.h" #include "opal/protocoltests/rpcv2cbor/serde.h" -#include "smithy/cbor/cbor.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/src/serde.cc b/protocol-tests/rpcv2cbor/generated/src/serde.cc index 8251ed5b..2f075a9a 100644 --- a/protocol-tests/rpcv2cbor/generated/src/serde.cc +++ b/protocol-tests/rpcv2cbor/generated/src/serde.cc @@ -3,8 +3,8 @@ #include #include +#include "opal/core/document_serde.h" #include "opal/protocoltests/rpcv2cbor/serde.h" -#include "smithy/core/document_serde.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/src/server.cc b/protocol-tests/rpcv2cbor/generated/src/server.cc index b4406bd2..229a75e6 100644 --- a/protocol-tests/rpcv2cbor/generated/src/server.cc +++ b/protocol-tests/rpcv2cbor/generated/src/server.cc @@ -7,12 +7,12 @@ #include #include +#include "opal/cbor/cbor.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" #include "opal/protocoltests/rpcv2cbor/serde.h" #include "opal/protocoltests/rpcv2cbor/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/server/router.h" +#include "opal/server/router.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/tests/request_tests.cc b/protocol-tests/rpcv2cbor/generated/tests/request_tests.cc index e8a4a345..47351739 100644 --- a/protocol-tests/rpcv2cbor/generated/tests/request_tests.cc +++ b/protocol-tests/rpcv2cbor/generated/tests/request_tests.cc @@ -9,7 +9,7 @@ #include #include "opal/protocoltests/rpcv2cbor/client.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/tests/response_tests.cc b/protocol-tests/rpcv2cbor/generated/tests/response_tests.cc index 3fc513f7..34887ec6 100644 --- a/protocol-tests/rpcv2cbor/generated/tests/response_tests.cc +++ b/protocol-tests/rpcv2cbor/generated/tests/response_tests.cc @@ -9,7 +9,7 @@ #include #include "opal/protocoltests/rpcv2cbor/client.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/tests/server_request_tests.cc b/protocol-tests/rpcv2cbor/generated/tests/server_request_tests.cc index 63e33f35..2e9c2615 100644 --- a/protocol-tests/rpcv2cbor/generated/tests/server_request_tests.cc +++ b/protocol-tests/rpcv2cbor/generated/tests/server_request_tests.cc @@ -10,7 +10,7 @@ #include "opal/protocoltests/rpcv2cbor/client.h" #include "opal/protocoltests/rpcv2cbor/server.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/tests/server_response_tests.cc b/protocol-tests/rpcv2cbor/generated/tests/server_response_tests.cc index c8e11d44..7896addc 100644 --- a/protocol-tests/rpcv2cbor/generated/tests/server_response_tests.cc +++ b/protocol-tests/rpcv2cbor/generated/tests/server_response_tests.cc @@ -10,7 +10,7 @@ #include "opal/protocoltests/rpcv2cbor/client.h" #include "opal/protocoltests/rpcv2cbor/server.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/generated/tests/smoke_test.cc b/protocol-tests/rpcv2cbor/generated/tests/smoke_test.cc index 836f143e..b7984842 100644 --- a/protocol-tests/rpcv2cbor/generated/tests/smoke_test.cc +++ b/protocol-tests/rpcv2cbor/generated/tests/smoke_test.cc @@ -4,10 +4,10 @@ #include #include +#include "opal/client/config.h" +#include "opal/http/loopback.h" #include "opal/protocoltests/rpcv2cbor/client.h" #include "opal/protocoltests/rpcv2cbor/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" namespace opal::protocoltests::rpcv2cbor { diff --git a/protocol-tests/rpcv2cbor/malformed/server_malformed_test.cc b/protocol-tests/rpcv2cbor/malformed/server_malformed_test.cc index b7848c60..405e2be3 100644 --- a/protocol-tests/rpcv2cbor/malformed/server_malformed_test.cc +++ b/protocol-tests/rpcv2cbor/malformed/server_malformed_test.cc @@ -10,9 +10,9 @@ #include #include +#include "opal/cbor/cbor.h" #include "opal/protocoltests/rpcv2cbor/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::rpcv2cbor { namespace { diff --git a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/client.h b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/client.h index 4bdd5f3b..4be321cb 100644 --- a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/client.h +++ b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/client.h @@ -12,13 +12,13 @@ #include #include +#include "opal/client/config.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/http/transport.h" #include "opal/protocoltests/simplerestjson/types.h" -#include "smithy/client/config.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/http/transport.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/serde.h b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/serde.h index 9b118554..5d7663dd 100644 --- a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/serde.h +++ b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/serde.h @@ -8,9 +8,9 @@ #include #include +#include "opal/core/document.h" +#include "opal/core/outcome.h" #include "opal/protocoltests/simplerestjson/types.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/server.h b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/server.h index 9af6a356..4bb5fa56 100644 --- a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/server.h +++ b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/server.h @@ -5,10 +5,10 @@ #include +#include "opal/core/outcome.h" +#include "opal/http/transport.h" #include "opal/protocoltests/simplerestjson/types.h" -#include "smithy/core/outcome.h" -#include "smithy/http/transport.h" -#include "smithy/server/router.h" +#include "opal/server/router.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/types.h b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/types.h index 2edc7fd9..bc15b5a5 100644 --- a/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/types.h +++ b/protocol-tests/simplerestjson/generated/include/opal/protocoltests/simplerestjson/types.h @@ -16,11 +16,11 @@ #include #include -#include "smithy/core/document.h" -#include "smithy/core/fatal.h" -#include "smithy/core/hash.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/document.h" +#include "opal/core/fatal.h" +#include "opal/core/hash.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/src/client.cc b/protocol-tests/simplerestjson/generated/src/client.cc index c27846f5..c5f184ab 100644 --- a/protocol-tests/simplerestjson/generated/src/client.cc +++ b/protocol-tests/simplerestjson/generated/src/client.cc @@ -10,16 +10,16 @@ #include #include +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document_serde.h" +#include "opal/core/uuid.h" +#include "opal/http/headers.h" +#include "opal/http/socket_transport.h" +#include "opal/http/uri.h" +#include "opal/json/json.h" #include "opal/protocoltests/simplerestjson/client.h" #include "opal/protocoltests/simplerestjson/serde.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/uuid.h" -#include "smithy/http/headers.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/uri.h" -#include "smithy/json/json.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/src/serde.cc b/protocol-tests/simplerestjson/generated/src/serde.cc index 5d1a151f..ebe814d7 100644 --- a/protocol-tests/simplerestjson/generated/src/serde.cc +++ b/protocol-tests/simplerestjson/generated/src/serde.cc @@ -3,8 +3,8 @@ #include #include +#include "opal/core/document_serde.h" #include "opal/protocoltests/simplerestjson/serde.h" -#include "smithy/core/document_serde.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/src/server.cc b/protocol-tests/simplerestjson/generated/src/server.cc index 34968aaf..3bc50fb1 100644 --- a/protocol-tests/simplerestjson/generated/src/server.cc +++ b/protocol-tests/simplerestjson/generated/src/server.cc @@ -13,16 +13,16 @@ #include #include +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/document_serde.h" +#include "opal/core/text.h" +#include "opal/http/headers.h" +#include "opal/json/json.h" #include "opal/protocoltests/simplerestjson/serde.h" #include "opal/protocoltests/simplerestjson/server.h" -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/document_serde.h" -#include "smithy/core/text.h" -#include "smithy/http/headers.h" -#include "smithy/json/json.h" -#include "smithy/server/router.h" +#include "opal/server/router.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/tests/request_tests.cc b/protocol-tests/simplerestjson/generated/tests/request_tests.cc index dfa81003..2a788a3b 100644 --- a/protocol-tests/simplerestjson/generated/tests/request_tests.cc +++ b/protocol-tests/simplerestjson/generated/tests/request_tests.cc @@ -9,7 +9,7 @@ #include #include "opal/protocoltests/simplerestjson/client.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/tests/response_tests.cc b/protocol-tests/simplerestjson/generated/tests/response_tests.cc index cb3cbbcb..ad88094c 100644 --- a/protocol-tests/simplerestjson/generated/tests/response_tests.cc +++ b/protocol-tests/simplerestjson/generated/tests/response_tests.cc @@ -9,7 +9,7 @@ #include #include "opal/protocoltests/simplerestjson/client.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/tests/server_request_tests.cc b/protocol-tests/simplerestjson/generated/tests/server_request_tests.cc index 00220bb6..f8283c0b 100644 --- a/protocol-tests/simplerestjson/generated/tests/server_request_tests.cc +++ b/protocol-tests/simplerestjson/generated/tests/server_request_tests.cc @@ -10,7 +10,7 @@ #include "opal/protocoltests/simplerestjson/client.h" #include "opal/protocoltests/simplerestjson/server.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/tests/server_response_tests.cc b/protocol-tests/simplerestjson/generated/tests/server_response_tests.cc index b9f1dcb9..1323b626 100644 --- a/protocol-tests/simplerestjson/generated/tests/server_response_tests.cc +++ b/protocol-tests/simplerestjson/generated/tests/server_response_tests.cc @@ -10,7 +10,7 @@ #include "opal/protocoltests/simplerestjson/client.h" #include "opal/protocoltests/simplerestjson/server.h" -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/generated/tests/smoke_test.cc b/protocol-tests/simplerestjson/generated/tests/smoke_test.cc index 0b93633d..7c27f93f 100644 --- a/protocol-tests/simplerestjson/generated/tests/smoke_test.cc +++ b/protocol-tests/simplerestjson/generated/tests/smoke_test.cc @@ -4,10 +4,10 @@ #include #include +#include "opal/client/config.h" +#include "opal/http/loopback.h" #include "opal/protocoltests/simplerestjson/client.h" #include "opal/protocoltests/simplerestjson/server.h" -#include "smithy/client/config.h" -#include "smithy/http/loopback.h" namespace opal::protocoltests::simplerestjson { diff --git a/protocol-tests/simplerestjson/malformed/pattern_violation_test.cc b/protocol-tests/simplerestjson/malformed/pattern_violation_test.cc index db07cb21..b9679643 100644 --- a/protocol-tests/simplerestjson/malformed/pattern_violation_test.cc +++ b/protocol-tests/simplerestjson/malformed/pattern_violation_test.cc @@ -11,7 +11,7 @@ #include #include "example/roundtrip/rest/server.h" -#include "smithy/json/json.h" +#include "opal/json/json.h" namespace example::roundtrip::rest { namespace { diff --git a/protocol-tests/simplerestjson/malformed/server_malformed_test.cc b/protocol-tests/simplerestjson/malformed/server_malformed_test.cc index 5b077ad8..6e232968 100644 --- a/protocol-tests/simplerestjson/malformed/server_malformed_test.cc +++ b/protocol-tests/simplerestjson/malformed/server_malformed_test.cc @@ -11,8 +11,8 @@ #include #include +#include "opal/json/json.h" #include "opal/protocoltests/simplerestjson/server.h" -#include "smithy/json/json.h" namespace opal::protocoltests::simplerestjson { namespace { diff --git a/protocol-tests/unions/union_accessor_test.cc b/protocol-tests/unions/union_accessor_test.cc index ab89ae90..8d900f40 100644 --- a/protocol-tests/unions/union_accessor_test.cc +++ b/protocol-tests/unions/union_accessor_test.cc @@ -10,7 +10,7 @@ #include #include "example/cafe/types.h" -#include "smithy/core/overloaded.h" +#include "opal/core/overloaded.h" namespace { diff --git a/protocol-tests/unions/union_cbor_test.cc b/protocol-tests/unions/union_cbor_test.cc index ef6944e3..b636817b 100644 --- a/protocol-tests/unions/union_cbor_test.cc +++ b/protocol-tests/unions/union_cbor_test.cc @@ -17,10 +17,10 @@ #include "example/roundtrip/rpc/client.h" #include "example/roundtrip/rpc/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/client/config.h" -#include "smithy/core/document.h" -#include "smithy/testing/protocol_test.h" +#include "opal/cbor/cbor.h" +#include "opal/client/config.h" +#include "opal/core/document.h" +#include "opal/testing/protocol_test.h" namespace example::roundtrip::rpc { namespace { diff --git a/protocol-tests/unions/union_gauntlet_cbor_test.cc b/protocol-tests/unions/union_gauntlet_cbor_test.cc index d2300d5b..888310b0 100644 --- a/protocol-tests/unions/union_gauntlet_cbor_test.cc +++ b/protocol-tests/unions/union_gauntlet_cbor_test.cc @@ -19,12 +19,12 @@ #include "compile/unions/cbor/client.h" #include "compile/unions/cbor/server.h" -#include "smithy/cbor/cbor.h" -#include "smithy/client/config.h" -#include "smithy/core/document.h" -#include "smithy/core/timestamp.h" -#include "smithy/http/loopback.h" -#include "smithy/testing/protocol_test.h" +#include "opal/cbor/cbor.h" +#include "opal/client/config.h" +#include "opal/core/document.h" +#include "opal/core/timestamp.h" +#include "opal/http/loopback.h" +#include "opal/testing/protocol_test.h" namespace compile::unions::cbor { namespace { diff --git a/protocol-tests/unions/union_gauntlet_jsonrpc2_test.cc b/protocol-tests/unions/union_gauntlet_jsonrpc2_test.cc index 36cf0cf5..320b458e 100644 --- a/protocol-tests/unions/union_gauntlet_jsonrpc2_test.cc +++ b/protocol-tests/unions/union_gauntlet_jsonrpc2_test.cc @@ -15,12 +15,12 @@ #include "compile/unions/jsonrpc/client.h" #include "compile/unions/jsonrpc/server.h" -#include "smithy/client/config.h" -#include "smithy/core/document.h" -#include "smithy/core/timestamp.h" -#include "smithy/http/loopback.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/core/document.h" +#include "opal/core/timestamp.h" +#include "opal/http/loopback.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace compile::unions::jsonrpc { namespace { diff --git a/protocol-tests/unions/union_jsonrpc2_test.cc b/protocol-tests/unions/union_jsonrpc2_test.cc index e8a14cb2..7a197394 100644 --- a/protocol-tests/unions/union_jsonrpc2_test.cc +++ b/protocol-tests/unions/union_jsonrpc2_test.cc @@ -13,10 +13,10 @@ #include "example/roundtrip/jsonrpc/client.h" #include "example/roundtrip/jsonrpc/server.h" -#include "smithy/client/config.h" -#include "smithy/core/document.h" -#include "smithy/json/json.h" -#include "smithy/testing/protocol_test.h" +#include "opal/client/config.h" +#include "opal/core/document.h" +#include "opal/json/json.h" +#include "opal/testing/protocol_test.h" namespace example::roundtrip::jsonrpc { namespace { diff --git a/runtime/BUILD.bazel b/runtime/BUILD.bazel index ab91e1b0..2190a954 100644 --- a/runtime/BUILD.bazel +++ b/runtime/BUILD.bazel @@ -6,7 +6,7 @@ package(default_visibility = ["//visibility:public"]) # Read by //tools:release_test, which pins the User-Agent to opal::Version(). exports_files([ "src/core/version.cc", - "include/smithy/client/config.h", + "include/opal/client/config.h", ]) cc_library( @@ -21,24 +21,24 @@ cc_library( "src/core/version.cc", ], hdrs = [ - "include/smithy/core/base64.h", - "include/smithy/core/blob.h", - "include/smithy/core/boxed.h", - "include/smithy/core/container_traits.h", - "include/smithy/core/document.h", - "include/smithy/core/document_serde.h", - "include/smithy/core/error.h", - "include/smithy/core/exception_guard.h", - "include/smithy/core/fatal.h", - "include/smithy/core/hash.h", - "include/smithy/core/outcome.h", - "include/smithy/core/overloaded.h", - "include/smithy/core/print.h", - "include/smithy/core/regex.h", - "include/smithy/core/text.h", - "include/smithy/core/timestamp.h", - "include/smithy/core/uuid.h", - "include/smithy/core/version.h", + "include/opal/core/base64.h", + "include/opal/core/blob.h", + "include/opal/core/boxed.h", + "include/opal/core/container_traits.h", + "include/opal/core/document.h", + "include/opal/core/document_serde.h", + "include/opal/core/error.h", + "include/opal/core/exception_guard.h", + "include/opal/core/fatal.h", + "include/opal/core/hash.h", + "include/opal/core/outcome.h", + "include/opal/core/overloaded.h", + "include/opal/core/print.h", + "include/opal/core/regex.h", + "include/opal/core/text.h", + "include/opal/core/timestamp.h", + "include/opal/core/uuid.h", + "include/opal/core/version.h", ], copts = COPTS, includes = ["include"], @@ -47,7 +47,7 @@ cc_library( cc_library( name = "json", srcs = ["src/json/json.cc"], - hdrs = ["include/smithy/json/json.h"], + hdrs = ["include/opal/json/json.h"], copts = COPTS, includes = ["include"], deps = [ @@ -59,7 +59,7 @@ cc_library( cc_library( name = "cbor", srcs = ["src/cbor/cbor.cc"], - hdrs = ["include/smithy/cbor/cbor.h"], + hdrs = ["include/opal/cbor/cbor.h"], copts = COPTS, includes = ["include"], deps = [":core"], @@ -76,8 +76,8 @@ cc_library( "src/eventstream/frame.cc", ], hdrs = [ - "include/smithy/eventstream/envelope.h", - "include/smithy/eventstream/frame.h", + "include/opal/eventstream/envelope.h", + "include/opal/eventstream/frame.h", ], copts = COPTS, includes = ["include"], @@ -91,7 +91,7 @@ cc_library( cc_library( name = "eventstream_json", srcs = ["src/eventstream/json_frame.cc"], - hdrs = ["include/smithy/eventstream/json_frame.h"], + hdrs = ["include/opal/eventstream/json_frame.h"], copts = COPTS, includes = ["include"], deps = [ @@ -125,8 +125,8 @@ cc_library( "src/eventstream/jsonrpc_stream_socket.cc", ], hdrs = [ - "include/smithy/eventstream/jsonrpc_frame.h", - "include/smithy/eventstream/jsonrpc_stream_socket.h", + "include/opal/eventstream/jsonrpc_frame.h", + "include/opal/eventstream/jsonrpc_stream_socket.h", ], copts = COPTS, includes = ["include"], @@ -230,20 +230,20 @@ cc_library( "src/http/websocket_pair.cc", ], hdrs = [ - "include/smithy/eventstream/async_event_stream.h", - "include/smithy/eventstream/event_stream.h", - "include/smithy/http/forwarded.h", - "include/smithy/http/headers.h", - "include/smithy/http/http1.h", - "include/smithy/http/loopback.h", - "include/smithy/http/message.h", - "include/smithy/http/server_dispatch.h", - "include/smithy/http/socket_transport.h", - "include/smithy/http/trace_context.h", - "include/smithy/http/transport.h", - "include/smithy/http/uri.h", - "include/smithy/http/websocket.h", - "include/smithy/http/websocket_pair.h", + "include/opal/eventstream/async_event_stream.h", + "include/opal/eventstream/event_stream.h", + "include/opal/http/forwarded.h", + "include/opal/http/headers.h", + "include/opal/http/http1.h", + "include/opal/http/loopback.h", + "include/opal/http/message.h", + "include/opal/http/server_dispatch.h", + "include/opal/http/socket_transport.h", + "include/opal/http/trace_context.h", + "include/opal/http/transport.h", + "include/opal/http/uri.h", + "include/opal/http/websocket.h", + "include/opal/http/websocket_pair.h", ], copts = COPTS, includes = ["include"], @@ -260,7 +260,7 @@ cc_library( cc_library( name = "test_tls_identity", testonly = True, - hdrs = ["testing/include/smithy/testing/tls_test_identity.h"], + hdrs = ["testing/include/opal/testing/tls_test_identity.h"], copts = COPTS, includes = ["testing/include"], ) @@ -270,7 +270,7 @@ cc_library( cc_library( name = "connection_event_recorder", testonly = True, - hdrs = ["testing/include/smithy/testing/connection_event_recorder.h"], + hdrs = ["testing/include/opal/testing/connection_event_recorder.h"], copts = COPTS, includes = ["testing/include"], deps = [":http_beast"], @@ -284,7 +284,7 @@ cc_library( cc_library( name = "websocket_contract_test_support", testonly = True, - hdrs = ["testing/include/smithy/testing/websocket_contract_test.h"], + hdrs = ["testing/include/opal/testing/websocket_contract_test.h"], copts = COPTS, includes = ["testing/include"], deps = [ @@ -297,7 +297,7 @@ cc_library( cc_library( name = "protocol_test_support", testonly = True, - hdrs = ["testing/include/smithy/testing/protocol_test.h"], + hdrs = ["testing/include/opal/testing/protocol_test.h"], copts = COPTS, includes = ["testing/include"], deps = [ @@ -413,7 +413,7 @@ cc_library( "src/http/beast_src.cc", "src/http/beast_transport.cc", ], - hdrs = ["include/smithy/http/beast_transport.h"], + hdrs = ["include/opal/http/beast_transport.h"], copts = COPTS, includes = ["include"], # Static only: Bazel's dynamic test linking would put the asio/beast @@ -494,8 +494,8 @@ cc_library( name = "compression", srcs = ["src/compression/gzip.cc"], hdrs = [ - "include/smithy/compression/gzip.h", - "include/smithy/compression/gzip_test_peer.h", + "include/opal/compression/gzip.h", + "include/opal/compression/gzip_test_peer.h", ], copts = COPTS, includes = ["include"], @@ -523,11 +523,11 @@ cc_library( "src/client/retry.cc", ], hdrs = [ - "include/smithy/client/config.h", - "include/smithy/client/interceptor.h", - "include/smithy/client/observability.h", - "include/smithy/client/pagination.h", - "include/smithy/client/retry.h", + "include/opal/client/config.h", + "include/opal/client/interceptor.h", + "include/opal/client/observability.h", + "include/opal/client/pagination.h", + "include/opal/client/retry.h", ], copts = COPTS, includes = ["include"], @@ -582,13 +582,13 @@ cc_library( "src/server/websocket_router.cc", ], hdrs = [ - "include/smithy/server/access_log.h", - "include/smithy/server/metrics.h", - "include/smithy/server/middleware.h", - "include/smithy/server/origin_gate.h", - "include/smithy/server/router.h", - "include/smithy/server/session_registry.h", - "include/smithy/server/websocket_router.h", + "include/opal/server/access_log.h", + "include/opal/server/metrics.h", + "include/opal/server/middleware.h", + "include/opal/server/origin_gate.h", + "include/opal/server/router.h", + "include/opal/server/session_registry.h", + "include/opal/server/websocket_router.h", ], copts = COPTS, includes = ["include"], diff --git a/runtime/include/smithy/cbor/cbor.h b/runtime/include/opal/cbor/cbor.h similarity index 79% rename from runtime/include/smithy/cbor/cbor.h rename to runtime/include/opal/cbor/cbor.h index 4a5f617f..fc95e262 100644 --- a/runtime/include/smithy/cbor/cbor.h +++ b/runtime/include/opal/cbor/cbor.h @@ -1,9 +1,9 @@ -#ifndef SMITHY_CBOR_CBOR_H_ -#define SMITHY_CBOR_CBOR_H_ +#ifndef OPAL_CBOR_CBOR_H_ +#define OPAL_CBOR_CBOR_H_ -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace opal::cbor { @@ -21,4 +21,4 @@ Outcome Decode(const Blob& bytes); } // namespace opal::cbor -#endif // SMITHY_CBOR_CBOR_H_ +#endif // OPAL_CBOR_CBOR_H_ diff --git a/runtime/include/smithy/client/config.h b/runtime/include/opal/client/config.h similarity index 88% rename from runtime/include/smithy/client/config.h rename to runtime/include/opal/client/config.h index cd457246..f10b80ec 100644 --- a/runtime/include/smithy/client/config.h +++ b/runtime/include/opal/client/config.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CLIENT_CONFIG_H_ -#define SMITHY_CLIENT_CONFIG_H_ +#ifndef OPAL_CLIENT_CONFIG_H_ +#define OPAL_CLIENT_CONFIG_H_ #include #include @@ -7,10 +7,10 @@ #include #include -#include "smithy/client/interceptor.h" -#include "smithy/client/retry.h" -#include "smithy/http/transport.h" -#include "smithy/http/websocket.h" +#include "opal/client/interceptor.h" +#include "opal/client/retry.h" +#include "opal/http/transport.h" +#include "opal/http/websocket.h" namespace opal { @@ -33,7 +33,7 @@ struct ClientConfig { // BeastHttpClient::FromConfig honors them; the built-in socket transport is // plaintext-only, and generated Create() rejects https endpoints without an // injected transport. Semantics and defaults live on the shared struct - // (smithy/http/transport.h). + // (opal/http/transport.h). http::TlsOptions tls; // Idle keep-alive connections a pooling transport (FromConfig-built) @@ -60,7 +60,7 @@ struct ClientConfig { std::function api_key; // User-supplied hooks around every HTTP attempt (auth headers, logging, - // tracing); run in registration order. See smithy/client/interceptor.h. + // tracing); run in registration order. See opal/client/interceptor.h. std::vector> interceptors; // Optional transport override; shared so several clients can reuse one. @@ -76,4 +76,4 @@ struct ClientConfig { } // namespace opal -#endif // SMITHY_CLIENT_CONFIG_H_ +#endif // OPAL_CLIENT_CONFIG_H_ diff --git a/runtime/include/smithy/client/interceptor.h b/runtime/include/opal/client/interceptor.h similarity index 86% rename from runtime/include/smithy/client/interceptor.h rename to runtime/include/opal/client/interceptor.h index bc357d8b..61b371fd 100644 --- a/runtime/include/smithy/client/interceptor.h +++ b/runtime/include/opal/client/interceptor.h @@ -1,8 +1,8 @@ -#ifndef SMITHY_CLIENT_INTERCEPTOR_H_ -#define SMITHY_CLIENT_INTERCEPTOR_H_ +#ifndef OPAL_CLIENT_INTERCEPTOR_H_ +#define OPAL_CLIENT_INTERCEPTOR_H_ -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" namespace opal { @@ -35,4 +35,4 @@ class Interceptor { } // namespace opal -#endif // SMITHY_CLIENT_INTERCEPTOR_H_ +#endif // OPAL_CLIENT_INTERCEPTOR_H_ diff --git a/runtime/include/smithy/client/observability.h b/runtime/include/opal/client/observability.h similarity index 87% rename from runtime/include/smithy/client/observability.h rename to runtime/include/opal/client/observability.h index 7df414a3..17499041 100644 --- a/runtime/include/smithy/client/observability.h +++ b/runtime/include/opal/client/observability.h @@ -1,13 +1,13 @@ -#ifndef SMITHY_CLIENT_OBSERVABILITY_H_ -#define SMITHY_CLIENT_OBSERVABILITY_H_ +#ifndef OPAL_CLIENT_OBSERVABILITY_H_ +#define OPAL_CLIENT_OBSERVABILITY_H_ #include #include #include #include -#include "smithy/client/interceptor.h" -#include "smithy/http/trace_context.h" +#include "opal/client/interceptor.h" +#include "opal/http/trace_context.h" namespace opal { @@ -38,4 +38,4 @@ std::shared_ptr PropagateTraceContext( } // namespace opal -#endif // SMITHY_CLIENT_OBSERVABILITY_H_ +#endif // OPAL_CLIENT_OBSERVABILITY_H_ diff --git a/runtime/include/smithy/client/pagination.h b/runtime/include/opal/client/pagination.h similarity index 94% rename from runtime/include/smithy/client/pagination.h rename to runtime/include/opal/client/pagination.h index 0b26ffe6..c5652287 100644 --- a/runtime/include/smithy/client/pagination.h +++ b/runtime/include/opal/client/pagination.h @@ -1,12 +1,12 @@ -#ifndef SMITHY_CLIENT_PAGINATION_H_ -#define SMITHY_CLIENT_PAGINATION_H_ +#ifndef OPAL_CLIENT_PAGINATION_H_ +#define OPAL_CLIENT_PAGINATION_H_ #include #include #include #include -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" namespace opal { @@ -79,4 +79,4 @@ class PageIterator { } // namespace opal -#endif // SMITHY_CLIENT_PAGINATION_H_ +#endif // OPAL_CLIENT_PAGINATION_H_ diff --git a/runtime/include/smithy/client/retry.h b/runtime/include/opal/client/retry.h similarity index 89% rename from runtime/include/smithy/client/retry.h rename to runtime/include/opal/client/retry.h index 99470654..1e7b6322 100644 --- a/runtime/include/smithy/client/retry.h +++ b/runtime/include/opal/client/retry.h @@ -1,15 +1,15 @@ -#ifndef SMITHY_CLIENT_RETRY_H_ -#define SMITHY_CLIENT_RETRY_H_ +#ifndef OPAL_CLIENT_RETRY_H_ +#define OPAL_CLIENT_RETRY_H_ #include #include #include #include -#include "smithy/client/interceptor.h" -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" -#include "smithy/http/transport.h" +#include "opal/client/interceptor.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" +#include "opal/http/transport.h" namespace opal { @@ -52,4 +52,4 @@ inline Outcome SendWithRetries(http::HttpClient& transport, } // namespace opal -#endif // SMITHY_CLIENT_RETRY_H_ +#endif // OPAL_CLIENT_RETRY_H_ diff --git a/runtime/include/smithy/compression/gzip.h b/runtime/include/opal/compression/gzip.h similarity index 83% rename from runtime/include/smithy/compression/gzip.h rename to runtime/include/opal/compression/gzip.h index 96313181..80b3434c 100644 --- a/runtime/include/smithy/compression/gzip.h +++ b/runtime/include/opal/compression/gzip.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_COMPRESSION_GZIP_H_ -#define SMITHY_COMPRESSION_GZIP_H_ +#ifndef OPAL_COMPRESSION_GZIP_H_ +#define OPAL_COMPRESSION_GZIP_H_ #include #include #include -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" namespace opal { @@ -22,4 +22,4 @@ Outcome GzipDecompress(std::string_view data, } // namespace opal -#endif // SMITHY_COMPRESSION_GZIP_H_ +#endif // OPAL_COMPRESSION_GZIP_H_ diff --git a/runtime/include/smithy/compression/gzip_test_peer.h b/runtime/include/opal/compression/gzip_test_peer.h similarity index 85% rename from runtime/include/smithy/compression/gzip_test_peer.h rename to runtime/include/opal/compression/gzip_test_peer.h index 59fbfa3d..c0c2ba18 100644 --- a/runtime/include/smithy/compression/gzip_test_peer.h +++ b/runtime/include/opal/compression/gzip_test_peer.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_COMPRESSION_GZIP_TEST_PEER_H_ -#define SMITHY_COMPRESSION_GZIP_TEST_PEER_H_ +#ifndef OPAL_COMPRESSION_GZIP_TEST_PEER_H_ +#define OPAL_COMPRESSION_GZIP_TEST_PEER_H_ #include #include #include -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" // The gzip feed-size seam, split out of gzip.h so the production surface // stays two functions: these exist for the tests and fuzz harnesses, which @@ -26,4 +26,4 @@ Outcome GzipDecompressChunked(std::string_view data, std::size_t ma } // namespace opal::internal -#endif // SMITHY_COMPRESSION_GZIP_TEST_PEER_H_ +#endif // OPAL_COMPRESSION_GZIP_TEST_PEER_H_ diff --git a/runtime/include/smithy/core/base64.h b/runtime/include/opal/core/base64.h similarity index 70% rename from runtime/include/smithy/core/base64.h rename to runtime/include/opal/core/base64.h index b88f28b7..e2234726 100644 --- a/runtime/include/smithy/core/base64.h +++ b/runtime/include/opal/core/base64.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_CORE_BASE64_H_ -#define SMITHY_CORE_BASE64_H_ +#ifndef OPAL_CORE_BASE64_H_ +#define OPAL_CORE_BASE64_H_ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/outcome.h" +#include "opal/core/blob.h" +#include "opal/core/outcome.h" namespace opal { @@ -18,4 +18,4 @@ Outcome Base64Decode(std::string_view text); } // namespace opal -#endif // SMITHY_CORE_BASE64_H_ +#endif // OPAL_CORE_BASE64_H_ diff --git a/runtime/include/smithy/core/blob.h b/runtime/include/opal/core/blob.h similarity index 93% rename from runtime/include/smithy/core/blob.h rename to runtime/include/opal/core/blob.h index b9db1484..17e951d1 100644 --- a/runtime/include/smithy/core/blob.h +++ b/runtime/include/opal/core/blob.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_BLOB_H_ -#define SMITHY_CORE_BLOB_H_ +#ifndef OPAL_CORE_BLOB_H_ +#define OPAL_CORE_BLOB_H_ #include #include @@ -35,7 +35,7 @@ class Blob { // Lexicographic by bytes, so blob-bearing generated structs stay orderable. friend auto operator<=>(const Blob& a, const Blob& b) { return a.bytes_ <=> b.bytes_; } - // Debug rendering (smithy/core/print.h): size plus a bounded hex prefix — + // Debug rendering (opal/core/print.h): size plus a bounded hex prefix — // never full contents, so logging a payload-bearing struct stays sane. void AppendDebugTo(std::string& out) const { out += "Blob("; @@ -73,4 +73,4 @@ struct std::hash { } }; -#endif // SMITHY_CORE_BLOB_H_ +#endif // OPAL_CORE_BLOB_H_ diff --git a/runtime/include/smithy/core/boxed.h b/runtime/include/opal/core/boxed.h similarity index 94% rename from runtime/include/smithy/core/boxed.h rename to runtime/include/opal/core/boxed.h index 3d2959ad..f3cbaae4 100644 --- a/runtime/include/smithy/core/boxed.h +++ b/runtime/include/opal/core/boxed.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_CORE_BOXED_H_ -#define SMITHY_CORE_BOXED_H_ +#ifndef OPAL_CORE_BOXED_H_ +#define OPAL_CORE_BOXED_H_ #include #include #include -#include "smithy/core/print.h" +#include "opal/core/print.h" namespace opal { @@ -60,4 +60,4 @@ class Boxed { } // namespace opal -#endif // SMITHY_CORE_BOXED_H_ +#endif // OPAL_CORE_BOXED_H_ diff --git a/runtime/include/smithy/core/container_traits.h b/runtime/include/opal/core/container_traits.h similarity index 85% rename from runtime/include/smithy/core/container_traits.h rename to runtime/include/opal/core/container_traits.h index ac0930dc..eebf83c8 100644 --- a/runtime/include/smithy/core/container_traits.h +++ b/runtime/include/opal/core/container_traits.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_CONTAINER_TRAITS_H_ -#define SMITHY_CORE_CONTAINER_TRAITS_H_ +#ifndef OPAL_CORE_CONTAINER_TRAITS_H_ +#define OPAL_CORE_CONTAINER_TRAITS_H_ #include #include @@ -28,4 +28,4 @@ struct IsOptional> : std::true_type {}; } // namespace opal::internal -#endif // SMITHY_CORE_CONTAINER_TRAITS_H_ +#endif // OPAL_CORE_CONTAINER_TRAITS_H_ diff --git a/runtime/include/smithy/core/document.h b/runtime/include/opal/core/document.h similarity index 93% rename from runtime/include/smithy/core/document.h rename to runtime/include/opal/core/document.h index 3cce6eaa..b3ab61fa 100644 --- a/runtime/include/smithy/core/document.h +++ b/runtime/include/opal/core/document.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_DOCUMENT_H_ -#define SMITHY_CORE_DOCUMENT_H_ +#ifndef OPAL_CORE_DOCUMENT_H_ +#define OPAL_CORE_DOCUMENT_H_ #include #include @@ -10,9 +10,9 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace opal { @@ -35,7 +35,7 @@ struct TimestampValue { }; // Dynamic structured value: the pivot representation between typed shapes and -// the wire codecs (smithy/json, smithy/cbor). Covers the Smithy document type +// the wire codecs (opal/json, opal/cbor). Covers the Smithy document type // (null/bool/number/string/list/map) plus blob and timestamp nodes so serde // code can hand binary and time values to the codec that knows how to render // them (base64 vs byte string, RFC 3339 vs CBOR tag 1, ...). @@ -96,7 +96,7 @@ class Document { const Value& value() const { return value_; } - // Debug rendering (smithy/core/print.h): JSON-ish — null/true/7/"x"/[..]/ + // Debug rendering (opal/core/print.h): JSON-ish — null/true/7/"x"/[..]/ // {"k": v}, with blob and timestamp nodes reusing their own renderings. // For humans only; the JSON codec is the parseable form. void AppendDebugTo(std::string& out) const { @@ -119,4 +119,4 @@ class Document { } // namespace opal -#endif // SMITHY_CORE_DOCUMENT_H_ +#endif // OPAL_CORE_DOCUMENT_H_ diff --git a/runtime/include/smithy/core/document_serde.h b/runtime/include/opal/core/document_serde.h similarity index 84% rename from runtime/include/smithy/core/document_serde.h rename to runtime/include/opal/core/document_serde.h index 69c4f7a0..78935e4b 100644 --- a/runtime/include/smithy/core/document_serde.h +++ b/runtime/include/opal/core/document_serde.h @@ -1,10 +1,10 @@ -#ifndef SMITHY_CORE_DOCUMENT_SERDE_H_ -#define SMITHY_CORE_DOCUMENT_SERDE_H_ +#ifndef OPAL_CORE_DOCUMENT_SERDE_H_ +#define OPAL_CORE_DOCUMENT_SERDE_H_ -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" +#include "opal/core/timestamp.h" namespace opal { @@ -37,4 +37,4 @@ std::string FormatFloat(float value); } // namespace opal -#endif // SMITHY_CORE_DOCUMENT_SERDE_H_ +#endif // OPAL_CORE_DOCUMENT_SERDE_H_ diff --git a/runtime/include/smithy/core/error.h b/runtime/include/opal/core/error.h similarity index 97% rename from runtime/include/smithy/core/error.h rename to runtime/include/opal/core/error.h index 153ed7d6..f8370bb7 100644 --- a/runtime/include/smithy/core/error.h +++ b/runtime/include/opal/core/error.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_ERROR_H_ -#define SMITHY_CORE_ERROR_H_ +#ifndef OPAL_CORE_ERROR_H_ +#define OPAL_CORE_ERROR_H_ #include #include @@ -87,4 +87,4 @@ class Error { } // namespace opal -#endif // SMITHY_CORE_ERROR_H_ +#endif // OPAL_CORE_ERROR_H_ diff --git a/runtime/include/smithy/core/exception_guard.h b/runtime/include/opal/core/exception_guard.h similarity index 93% rename from runtime/include/smithy/core/exception_guard.h rename to runtime/include/opal/core/exception_guard.h index 35e625b2..a8becce7 100644 --- a/runtime/include/smithy/core/exception_guard.h +++ b/runtime/include/opal/core/exception_guard.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_EXCEPTION_GUARD_H_ -#define SMITHY_CORE_EXCEPTION_GUARD_H_ +#ifndef OPAL_CORE_EXCEPTION_GUARD_H_ +#define OPAL_CORE_EXCEPTION_GUARD_H_ #include @@ -45,4 +45,4 @@ auto Contain(Body&& body, OnThrow&& on_throw) -> decltype(std::forward(bod } // namespace opal::internal -#endif // SMITHY_CORE_EXCEPTION_GUARD_H_ +#endif // OPAL_CORE_EXCEPTION_GUARD_H_ diff --git a/runtime/include/smithy/core/fatal.h b/runtime/include/opal/core/fatal.h similarity index 89% rename from runtime/include/smithy/core/fatal.h rename to runtime/include/opal/core/fatal.h index ab86bcff..3af22e5a 100644 --- a/runtime/include/smithy/core/fatal.h +++ b/runtime/include/opal/core/fatal.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_FATAL_H_ -#define SMITHY_CORE_FATAL_H_ +#ifndef OPAL_CORE_FATAL_H_ +#define OPAL_CORE_FATAL_H_ #include #include @@ -14,7 +14,7 @@ namespace opal::internal { // instead of throwing std::bad_variant_access with none. Cold and non-inline // so the crash path never bloats the accessors that guard with it. [[noreturn]] [[gnu::cold]] [[gnu::noinline]] inline void Fatal(std::string_view message) { - std::fprintf(stderr, "smithy: %.*s\n", static_cast(message.size()), message.data()); + std::fprintf(stderr, "opal: %.*s\n", static_cast(message.size()), message.data()); std::abort(); } @@ -42,4 +42,4 @@ namespace opal::internal { } // namespace opal::internal -#endif // SMITHY_CORE_FATAL_H_ +#endif // OPAL_CORE_FATAL_H_ diff --git a/runtime/include/smithy/core/hash.h b/runtime/include/opal/core/hash.h similarity index 94% rename from runtime/include/smithy/core/hash.h rename to runtime/include/opal/core/hash.h index 3954a56d..fd7ecb73 100644 --- a/runtime/include/smithy/core/hash.h +++ b/runtime/include/opal/core/hash.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_HASH_H_ -#define SMITHY_CORE_HASH_H_ +#ifndef OPAL_CORE_HASH_H_ +#define OPAL_CORE_HASH_H_ #include #include @@ -9,7 +9,7 @@ #include #include -#include "smithy/core/container_traits.h" +#include "opal/core/container_traits.h" namespace opal { @@ -61,4 +61,4 @@ std::size_t HashValue(const T& value) noexcept { } // namespace opal -#endif // SMITHY_CORE_HASH_H_ +#endif // OPAL_CORE_HASH_H_ diff --git a/runtime/include/smithy/core/outcome.h b/runtime/include/opal/core/outcome.h similarity index 94% rename from runtime/include/smithy/core/outcome.h rename to runtime/include/opal/core/outcome.h index 347757fb..12bd6760 100644 --- a/runtime/include/smithy/core/outcome.h +++ b/runtime/include/opal/core/outcome.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_OUTCOME_H_ -#define SMITHY_CORE_OUTCOME_H_ +#ifndef OPAL_CORE_OUTCOME_H_ +#define OPAL_CORE_OUTCOME_H_ #include #include @@ -9,8 +9,8 @@ #include #include -#include "smithy/core/error.h" -#include "smithy/core/fatal.h" +#include "opal/core/error.h" +#include "opal/core/fatal.h" namespace opal { @@ -22,7 +22,7 @@ struct Unit { friend std::strong_ordering operator<=>(Unit /*lhs*/, Unit /*rhs*/) { return std::strong_ordering::equal; } - // Debug rendering (smithy/core/print.h). Static is fine: the detection in + // Debug rendering (opal/core/print.h). Static is fine: the detection in // DebugAppend calls it through an object expression either way. static void AppendDebugTo(std::string& out) { out += "Unit{}"; } }; @@ -126,4 +126,4 @@ struct std::hash { std::size_t operator()(opal::Unit /*unit*/) const noexcept { return 0; } }; -#endif // SMITHY_CORE_OUTCOME_H_ +#endif // OPAL_CORE_OUTCOME_H_ diff --git a/runtime/include/smithy/core/overloaded.h b/runtime/include/opal/core/overloaded.h similarity index 83% rename from runtime/include/smithy/core/overloaded.h rename to runtime/include/opal/core/overloaded.h index 7f671517..61d29a75 100644 --- a/runtime/include/smithy/core/overloaded.h +++ b/runtime/include/opal/core/overloaded.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_OVERLOADED_H_ -#define SMITHY_CORE_OVERLOADED_H_ +#ifndef OPAL_CORE_OVERLOADED_H_ +#define OPAL_CORE_OVERLOADED_H_ namespace opal { @@ -20,4 +20,4 @@ Overloaded(Fs...) -> Overloaded; } // namespace opal -#endif // SMITHY_CORE_OVERLOADED_H_ +#endif // OPAL_CORE_OVERLOADED_H_ diff --git a/runtime/include/smithy/core/print.h b/runtime/include/opal/core/print.h similarity index 96% rename from runtime/include/smithy/core/print.h rename to runtime/include/opal/core/print.h index eca9635e..d7ae2d58 100644 --- a/runtime/include/smithy/core/print.h +++ b/runtime/include/opal/core/print.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_PRINT_H_ -#define SMITHY_CORE_PRINT_H_ +#ifndef OPAL_CORE_PRINT_H_ +#define OPAL_CORE_PRINT_H_ #include #include @@ -12,7 +12,7 @@ #include #include -#include "smithy/core/container_traits.h" +#include "opal/core/container_traits.h" namespace opal { @@ -130,4 +130,4 @@ std::string DebugString(const T& value) { } // namespace opal -#endif // SMITHY_CORE_PRINT_H_ +#endif // OPAL_CORE_PRINT_H_ diff --git a/runtime/include/smithy/core/regex.h b/runtime/include/opal/core/regex.h similarity index 96% rename from runtime/include/smithy/core/regex.h rename to runtime/include/opal/core/regex.h index f6eed02b..017699a8 100644 --- a/runtime/include/smithy/core/regex.h +++ b/runtime/include/opal/core/regex.h @@ -1,12 +1,12 @@ -#ifndef SMITHY_CORE_REGEX_H_ -#define SMITHY_CORE_REGEX_H_ +#ifndef OPAL_CORE_REGEX_H_ +#define OPAL_CORE_REGEX_H_ #include #include #include #include -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" namespace opal { @@ -85,4 +85,4 @@ class Regex { } // namespace opal -#endif // SMITHY_CORE_REGEX_H_ +#endif // OPAL_CORE_REGEX_H_ diff --git a/runtime/include/smithy/core/text.h b/runtime/include/opal/core/text.h similarity index 77% rename from runtime/include/smithy/core/text.h rename to runtime/include/opal/core/text.h index 1ed91923..0e689111 100644 --- a/runtime/include/smithy/core/text.h +++ b/runtime/include/opal/core/text.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_TEXT_H_ -#define SMITHY_CORE_TEXT_H_ +#ifndef OPAL_CORE_TEXT_H_ +#define OPAL_CORE_TEXT_H_ #include #include @@ -12,4 +12,4 @@ std::size_t Utf8CodePointCount(std::string_view text); } // namespace opal -#endif // SMITHY_CORE_TEXT_H_ +#endif // OPAL_CORE_TEXT_H_ diff --git a/runtime/include/smithy/core/timestamp.h b/runtime/include/opal/core/timestamp.h similarity index 93% rename from runtime/include/smithy/core/timestamp.h rename to runtime/include/opal/core/timestamp.h index 34a10e5e..091b211e 100644 --- a/runtime/include/smithy/core/timestamp.h +++ b/runtime/include/opal/core/timestamp.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_TIMESTAMP_H_ -#define SMITHY_CORE_TIMESTAMP_H_ +#ifndef OPAL_CORE_TIMESTAMP_H_ +#define OPAL_CORE_TIMESTAMP_H_ #include #include @@ -8,7 +8,7 @@ #include #include -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" namespace opal { @@ -54,7 +54,7 @@ class Timestamp { // default their own operator<=> (issue #49). friend std::strong_ordering operator<=>(Timestamp a, Timestamp b) { return a.ms_ <=> b.ms_; } - // Debug rendering (smithy/core/print.h): RFC 3339, the most readable of + // Debug rendering (opal/core/print.h): RFC 3339, the most readable of // the three wire formats. void AppendDebugTo(std::string& out) const { out += "Timestamp("; @@ -80,4 +80,4 @@ struct std::hash { } }; -#endif // SMITHY_CORE_TIMESTAMP_H_ +#endif // OPAL_CORE_TIMESTAMP_H_ diff --git a/runtime/include/smithy/core/uuid.h b/runtime/include/opal/core/uuid.h similarity index 74% rename from runtime/include/smithy/core/uuid.h rename to runtime/include/opal/core/uuid.h index 9c164c96..287561de 100644 --- a/runtime/include/smithy/core/uuid.h +++ b/runtime/include/opal/core/uuid.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_UUID_H_ -#define SMITHY_CORE_UUID_H_ +#ifndef OPAL_CORE_UUID_H_ +#define OPAL_CORE_UUID_H_ #include @@ -11,4 +11,4 @@ std::string GenerateUuidV4(); } // namespace opal -#endif // SMITHY_CORE_UUID_H_ +#endif // OPAL_CORE_UUID_H_ diff --git a/runtime/include/smithy/core/version.h b/runtime/include/opal/core/version.h similarity index 63% rename from runtime/include/smithy/core/version.h rename to runtime/include/opal/core/version.h index 2c073bc2..0a6e51e8 100644 --- a/runtime/include/smithy/core/version.h +++ b/runtime/include/opal/core/version.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_CORE_VERSION_H_ -#define SMITHY_CORE_VERSION_H_ +#ifndef OPAL_CORE_VERSION_H_ +#define OPAL_CORE_VERSION_H_ #include @@ -10,4 +10,4 @@ std::string_view Version(); } // namespace opal -#endif // SMITHY_CORE_VERSION_H_ +#endif // OPAL_CORE_VERSION_H_ diff --git a/runtime/include/smithy/eventstream/async_event_stream.h b/runtime/include/opal/eventstream/async_event_stream.h similarity index 97% rename from runtime/include/smithy/eventstream/async_event_stream.h rename to runtime/include/opal/eventstream/async_event_stream.h index a9751a8d..904bf8c8 100644 --- a/runtime/include/smithy/eventstream/async_event_stream.h +++ b/runtime/include/opal/eventstream/async_event_stream.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EVENTSTREAM_ASYNC_EVENT_STREAM_H_ -#define SMITHY_EVENTSTREAM_ASYNC_EVENT_STREAM_H_ +#ifndef OPAL_EVENTSTREAM_ASYNC_EVENT_STREAM_H_ +#define OPAL_EVENTSTREAM_ASYNC_EVENT_STREAM_H_ #include #include @@ -13,10 +13,10 @@ #include #include -#include "smithy/core/outcome.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/event_stream.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" namespace opal::eventstream { @@ -44,9 +44,9 @@ struct Detached { try { std::rethrow_exception(std::current_exception()); } catch (const std::exception& e) { - std::clog << "smithy: detached stream coroutine threw: " << e.what() << "\n"; + std::clog << "opal: detached stream coroutine threw: " << e.what() << "\n"; } catch (...) { - std::clog << "smithy: detached stream coroutine threw a non-std exception\n"; + std::clog << "opal: detached stream coroutine threw a non-std exception\n"; } #endif } @@ -415,4 +415,4 @@ class AsyncEventStream { } // namespace opal::eventstream -#endif // SMITHY_EVENTSTREAM_ASYNC_EVENT_STREAM_H_ +#endif // OPAL_EVENTSTREAM_ASYNC_EVENT_STREAM_H_ diff --git a/runtime/include/smithy/eventstream/envelope.h b/runtime/include/opal/eventstream/envelope.h similarity index 91% rename from runtime/include/smithy/eventstream/envelope.h rename to runtime/include/opal/eventstream/envelope.h index 0e3d70bc..ef595e73 100644 --- a/runtime/include/smithy/eventstream/envelope.h +++ b/runtime/include/opal/eventstream/envelope.h @@ -1,13 +1,13 @@ -#ifndef SMITHY_EVENTSTREAM_ENVELOPE_H_ -#define SMITHY_EVENTSTREAM_ENVELOPE_H_ +#ifndef OPAL_EVENTSTREAM_ENVELOPE_H_ +#define OPAL_EVENTSTREAM_ENVELOPE_H_ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/eventstream/frame.h" +#include "opal/core/blob.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/eventstream/frame.h" namespace opal::eventstream { @@ -42,7 +42,7 @@ struct EventEnvelope { Blob payload; friend bool operator==(const EventEnvelope&, const EventEnvelope&) = default; - // Debug rendering (smithy/core/print.h). + // Debug rendering (opal/core/print.h). void AppendDebugTo(std::string& out) const { out += kind == Kind::kEvent ? "EventEnvelope(event, " : "EventEnvelope(exception, "; DebugAppend(out, type); @@ -76,4 +76,4 @@ Outcome ParseEnvelope(const Message& message); } // namespace opal::eventstream -#endif // SMITHY_EVENTSTREAM_ENVELOPE_H_ +#endif // OPAL_EVENTSTREAM_ENVELOPE_H_ diff --git a/runtime/include/smithy/eventstream/event_stream.h b/runtime/include/opal/eventstream/event_stream.h similarity index 97% rename from runtime/include/smithy/eventstream/event_stream.h rename to runtime/include/opal/eventstream/event_stream.h index 64b46012..d6f4179d 100644 --- a/runtime/include/smithy/eventstream/event_stream.h +++ b/runtime/include/opal/eventstream/event_stream.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EVENTSTREAM_EVENT_STREAM_H_ -#define SMITHY_EVENTSTREAM_EVENT_STREAM_H_ +#ifndef OPAL_EVENTSTREAM_EVENT_STREAM_H_ +#define OPAL_EVENTSTREAM_EVENT_STREAM_H_ #include #include @@ -10,9 +10,9 @@ #include #include -#include "smithy/core/outcome.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" namespace opal::eventstream { @@ -125,7 +125,7 @@ class SharedViewOwner { // Send and Close are const and safe from any thread; concurrent handle // Sends serialize on the socket like concurrent stream Sends, and Send // blocks until its frame is on the wire (fan-out wants queues on top: see -// smithy/server/session_registry.h). The one-receiver rule is unchanged — +// opal/server/session_registry.h). The one-receiver rule is unchanged — // a handle exposes no Receive; receiving stays with the stream's owner. template class EventStreamHandle { @@ -228,7 +228,7 @@ class EventStreamHandle { // the parameters swapped. EventStream only plumbs: the encoder turns a // typed event into a message, the decoder turns a message into the typed // event or into the modeled Error for an exception message; the envelope -// convention lives in the codecs (smithy/eventstream/envelope.h), never +// convention lives in the codecs (opal/eventstream/envelope.h), never // here. // // Blocking, full duplex, backpressure, and cancellation are the wrapped @@ -348,4 +348,4 @@ class EventStream { } // namespace opal::eventstream -#endif // SMITHY_EVENTSTREAM_EVENT_STREAM_H_ +#endif // OPAL_EVENTSTREAM_EVENT_STREAM_H_ diff --git a/runtime/include/smithy/eventstream/frame.h b/runtime/include/opal/eventstream/frame.h similarity index 94% rename from runtime/include/smithy/eventstream/frame.h rename to runtime/include/opal/eventstream/frame.h index 0bc93d95..36f528ca 100644 --- a/runtime/include/smithy/eventstream/frame.h +++ b/runtime/include/opal/eventstream/frame.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_EVENTSTREAM_FRAME_H_ -#define SMITHY_EVENTSTREAM_FRAME_H_ +#ifndef OPAL_EVENTSTREAM_FRAME_H_ +#define OPAL_EVENTSTREAM_FRAME_H_ #include #include @@ -10,10 +10,10 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/outcome.h" -#include "smithy/core/print.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/outcome.h" +#include "opal/core/print.h" +#include "opal/core/timestamp.h" namespace opal::eventstream { @@ -34,7 +34,7 @@ struct Uuid { std::array bytes{}; friend bool operator==(const Uuid&, const Uuid&) = default; - // Debug rendering (smithy/core/print.h): canonical dashed hex. + // Debug rendering (opal/core/print.h): canonical dashed hex. void AppendDebugTo(std::string& out) const { static constexpr std::string_view kHex = "0123456789abcdef"; out += "Uuid("; @@ -143,4 +143,4 @@ Outcome> DecodeMessage(std::string_view buffer); } // namespace opal::eventstream -#endif // SMITHY_EVENTSTREAM_FRAME_H_ +#endif // OPAL_EVENTSTREAM_FRAME_H_ diff --git a/runtime/include/smithy/eventstream/json_frame.h b/runtime/include/opal/eventstream/json_frame.h similarity index 92% rename from runtime/include/smithy/eventstream/json_frame.h rename to runtime/include/opal/eventstream/json_frame.h index 08442422..179cb888 100644 --- a/runtime/include/smithy/eventstream/json_frame.h +++ b/runtime/include/opal/eventstream/json_frame.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_EVENTSTREAM_JSON_FRAME_H_ -#define SMITHY_EVENTSTREAM_JSON_FRAME_H_ +#ifndef OPAL_EVENTSTREAM_JSON_FRAME_H_ +#define OPAL_EVENTSTREAM_JSON_FRAME_H_ #include #include -#include "smithy/core/outcome.h" -#include "smithy/eventstream/frame.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/frame.h" namespace opal::eventstream { @@ -50,4 +50,4 @@ Outcome DecodeJsonFrame(std::string_view text); } // namespace opal::eventstream -#endif // SMITHY_EVENTSTREAM_JSON_FRAME_H_ +#endif // OPAL_EVENTSTREAM_JSON_FRAME_H_ diff --git a/runtime/include/smithy/eventstream/jsonrpc_frame.h b/runtime/include/opal/eventstream/jsonrpc_frame.h similarity index 94% rename from runtime/include/smithy/eventstream/jsonrpc_frame.h rename to runtime/include/opal/eventstream/jsonrpc_frame.h index 25253f74..a89ade07 100644 --- a/runtime/include/smithy/eventstream/jsonrpc_frame.h +++ b/runtime/include/opal/eventstream/jsonrpc_frame.h @@ -1,12 +1,12 @@ -#ifndef SMITHY_EVENTSTREAM_JSONRPC_FRAME_H_ -#define SMITHY_EVENTSTREAM_JSONRPC_FRAME_H_ +#ifndef OPAL_EVENTSTREAM_JSONRPC_FRAME_H_ +#define OPAL_EVENTSTREAM_JSONRPC_FRAME_H_ #include #include -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/frame.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/frame.h" namespace opal::eventstream { @@ -81,4 +81,4 @@ std::string EncodeJsonRpcViolationResponse(int code, std::string_view reason, co } // namespace opal::eventstream -#endif // SMITHY_EVENTSTREAM_JSONRPC_FRAME_H_ +#endif // OPAL_EVENTSTREAM_JSONRPC_FRAME_H_ diff --git a/runtime/include/smithy/eventstream/jsonrpc_stream_socket.h b/runtime/include/opal/eventstream/jsonrpc_stream_socket.h similarity index 94% rename from runtime/include/smithy/eventstream/jsonrpc_stream_socket.h rename to runtime/include/opal/eventstream/jsonrpc_stream_socket.h index 4b532f3a..af52e3d4 100644 --- a/runtime/include/smithy/eventstream/jsonrpc_stream_socket.h +++ b/runtime/include/opal/eventstream/jsonrpc_stream_socket.h @@ -1,14 +1,14 @@ -#ifndef SMITHY_EVENTSTREAM_JSONRPC_STREAM_SOCKET_H_ -#define SMITHY_EVENTSTREAM_JSONRPC_STREAM_SOCKET_H_ +#ifndef OPAL_EVENTSTREAM_JSONRPC_STREAM_SOCKET_H_ +#define OPAL_EVENTSTREAM_JSONRPC_STREAM_SOCKET_H_ #include #include #include -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" namespace opal::eventstream { @@ -103,4 +103,4 @@ class JsonRpcStreamSocket final : public http::WebSocket { } // namespace opal::eventstream -#endif // SMITHY_EVENTSTREAM_JSONRPC_STREAM_SOCKET_H_ +#endif // OPAL_EVENTSTREAM_JSONRPC_STREAM_SOCKET_H_ diff --git a/runtime/include/smithy/http/beast_transport.h b/runtime/include/opal/http/beast_transport.h similarity index 97% rename from runtime/include/smithy/http/beast_transport.h rename to runtime/include/opal/http/beast_transport.h index cc7fa6c5..c0047a10 100644 --- a/runtime/include/smithy/http/beast_transport.h +++ b/runtime/include/opal/http/beast_transport.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_HTTP_BEAST_TRANSPORT_H_ -#define SMITHY_HTTP_BEAST_TRANSPORT_H_ +#ifndef OPAL_HTTP_BEAST_TRANSPORT_H_ +#define OPAL_HTTP_BEAST_TRANSPORT_H_ #include #include @@ -10,11 +10,11 @@ #include #include -#include "smithy/http/transport.h" -#include "smithy/http/websocket.h" +#include "opal/http/transport.h" +#include "opal/http/websocket.h" namespace opal { -// smithy/client/config.h — forward-declared so this header stays includable +// opal/client/config.h — forward-declared so this header stays includable // without the client headers. The library dependency is deliberate: // FromConfig is the ClientConfig→transport bridge, and it lives here because // only this side can construct a Beast client while :client stays Boost-free. @@ -163,7 +163,7 @@ class BeastServerTransport : public HttpServerTransport { // session lives until a Close (any holder or the peer), the idle // timeout, or Stop()'s abort, so serving it costs no parked handler // thread (the completion-driven receive and the coroutine adapter in - // smithy/eventstream/async_event_stream.h are the intended loop). + // opal/eventstream/async_event_stream.h are the intended loop). // At most one of on_websocket / on_websocket_session may be set // (neither is an HTTP-only server); the gate and the wire mode — the // JSON-frames negotiation or the raw-text flag below — apply to @@ -284,4 +284,4 @@ class BeastHttpClient : public HttpClient { } // namespace opal::http -#endif // SMITHY_HTTP_BEAST_TRANSPORT_H_ +#endif // OPAL_HTTP_BEAST_TRANSPORT_H_ diff --git a/runtime/include/smithy/http/forwarded.h b/runtime/include/opal/http/forwarded.h similarity index 95% rename from runtime/include/smithy/http/forwarded.h rename to runtime/include/opal/http/forwarded.h index 5cd0b1c0..cce8ec84 100644 --- a/runtime/include/smithy/http/forwarded.h +++ b/runtime/include/opal/http/forwarded.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_HTTP_FORWARDED_H_ -#define SMITHY_HTTP_FORWARDED_H_ +#ifndef OPAL_HTTP_FORWARDED_H_ +#define OPAL_HTTP_FORWARDED_H_ #include #include @@ -7,9 +7,9 @@ #include #include -#include "smithy/core/error.h" -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" +#include "opal/core/error.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" namespace opal::http { @@ -104,4 +104,4 @@ std::string ClientAddress(const HttpRequest& request, const TrustedProxies& trus } // namespace opal::http -#endif // SMITHY_HTTP_FORWARDED_H_ +#endif // OPAL_HTTP_FORWARDED_H_ diff --git a/runtime/include/smithy/http/headers.h b/runtime/include/opal/http/headers.h similarity index 97% rename from runtime/include/smithy/http/headers.h rename to runtime/include/opal/http/headers.h index 4be123b3..2451b458 100644 --- a/runtime/include/smithy/http/headers.h +++ b/runtime/include/opal/http/headers.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_HTTP_HEADERS_H_ -#define SMITHY_HTTP_HEADERS_H_ +#ifndef OPAL_HTTP_HEADERS_H_ +#define OPAL_HTTP_HEADERS_H_ #include #include @@ -90,4 +90,4 @@ bool ValidRequestLineField(std::string_view field); } // namespace opal::http -#endif // SMITHY_HTTP_HEADERS_H_ +#endif // OPAL_HTTP_HEADERS_H_ diff --git a/runtime/include/smithy/http/http1.h b/runtime/include/opal/http/http1.h similarity index 92% rename from runtime/include/smithy/http/http1.h rename to runtime/include/opal/http/http1.h index aefc23e6..1d0df96f 100644 --- a/runtime/include/smithy/http/http1.h +++ b/runtime/include/opal/http/http1.h @@ -1,13 +1,13 @@ -#ifndef SMITHY_HTTP_HTTP1_H_ -#define SMITHY_HTTP_HTTP1_H_ +#ifndef OPAL_HTTP_HTTP1_H_ +#define OPAL_HTTP_HTTP1_H_ #include #include #include #include -#include "smithy/core/outcome.h" -#include "smithy/http/headers.h" +#include "opal/core/outcome.h" +#include "opal/http/headers.h" namespace opal::http { @@ -52,4 +52,4 @@ Outcome ParseStatusLine(std::string_view line); } // namespace opal::http -#endif // SMITHY_HTTP_HTTP1_H_ +#endif // OPAL_HTTP_HTTP1_H_ diff --git a/runtime/include/smithy/http/loopback.h b/runtime/include/opal/http/loopback.h similarity index 85% rename from runtime/include/smithy/http/loopback.h rename to runtime/include/opal/http/loopback.h index 62aa7a33..585167fb 100644 --- a/runtime/include/smithy/http/loopback.h +++ b/runtime/include/opal/http/loopback.h @@ -1,10 +1,10 @@ -#ifndef SMITHY_HTTP_LOOPBACK_H_ -#define SMITHY_HTTP_LOOPBACK_H_ +#ifndef OPAL_HTTP_LOOPBACK_H_ +#define OPAL_HTTP_LOOPBACK_H_ #include -#include "smithy/http/server_dispatch.h" -#include "smithy/http/transport.h" +#include "opal/http/server_dispatch.h" +#include "opal/http/transport.h" namespace opal::http { @@ -35,4 +35,4 @@ class Loopback : public HttpClient, public HttpServerTransport { } // namespace opal::http -#endif // SMITHY_HTTP_LOOPBACK_H_ +#endif // OPAL_HTTP_LOOPBACK_H_ diff --git a/runtime/include/smithy/http/message.h b/runtime/include/opal/http/message.h similarity index 93% rename from runtime/include/smithy/http/message.h rename to runtime/include/opal/http/message.h index 952c62b2..897af7a2 100644 --- a/runtime/include/smithy/http/message.h +++ b/runtime/include/opal/http/message.h @@ -1,9 +1,9 @@ -#ifndef SMITHY_HTTP_MESSAGE_H_ -#define SMITHY_HTTP_MESSAGE_H_ +#ifndef OPAL_HTTP_MESSAGE_H_ +#define OPAL_HTTP_MESSAGE_H_ #include -#include "smithy/http/headers.h" +#include "opal/http/headers.h" namespace opal::http { @@ -46,4 +46,4 @@ struct HttpResponse { } // namespace opal::http -#endif // SMITHY_HTTP_MESSAGE_H_ +#endif // OPAL_HTTP_MESSAGE_H_ diff --git a/runtime/include/smithy/http/server_dispatch.h b/runtime/include/opal/http/server_dispatch.h similarity index 91% rename from runtime/include/smithy/http/server_dispatch.h rename to runtime/include/opal/http/server_dispatch.h index c1bbdcee..56c25934 100644 --- a/runtime/include/smithy/http/server_dispatch.h +++ b/runtime/include/opal/http/server_dispatch.h @@ -1,12 +1,12 @@ -#ifndef SMITHY_HTTP_SERVER_DISPATCH_H_ -#define SMITHY_HTTP_SERVER_DISPATCH_H_ +#ifndef OPAL_HTTP_SERVER_DISPATCH_H_ +#define OPAL_HTTP_SERVER_DISPATCH_H_ #include #include -#include "smithy/http/message.h" -#include "smithy/http/transport.h" +#include "opal/http/message.h" +#include "opal/http/transport.h" namespace opal::http { @@ -42,4 +42,4 @@ HttpResponse InvokeHandlerGuarded(const RequestHandler& handler, HttpRequest req } // namespace opal::http -#endif // SMITHY_HTTP_SERVER_DISPATCH_H_ +#endif // OPAL_HTTP_SERVER_DISPATCH_H_ diff --git a/runtime/include/smithy/http/socket_transport.h b/runtime/include/opal/http/socket_transport.h similarity index 92% rename from runtime/include/smithy/http/socket_transport.h rename to runtime/include/opal/http/socket_transport.h index 879eeb73..40860961 100644 --- a/runtime/include/smithy/http/socket_transport.h +++ b/runtime/include/opal/http/socket_transport.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_HTTP_SOCKET_TRANSPORT_H_ -#define SMITHY_HTTP_SOCKET_TRANSPORT_H_ +#ifndef OPAL_HTTP_SOCKET_TRANSPORT_H_ +#define OPAL_HTTP_SOCKET_TRANSPORT_H_ #include #include @@ -7,7 +7,7 @@ #include #include -#include "smithy/http/transport.h" +#include "opal/http/transport.h" namespace opal::http { @@ -62,4 +62,4 @@ class SocketHttpServer : public HttpServerTransport { } // namespace opal::http -#endif // SMITHY_HTTP_SOCKET_TRANSPORT_H_ +#endif // OPAL_HTTP_SOCKET_TRANSPORT_H_ diff --git a/runtime/include/smithy/http/trace_context.h b/runtime/include/opal/http/trace_context.h similarity index 90% rename from runtime/include/smithy/http/trace_context.h rename to runtime/include/opal/http/trace_context.h index 09b52c3b..4ed7243f 100644 --- a/runtime/include/smithy/http/trace_context.h +++ b/runtime/include/opal/http/trace_context.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_HTTP_TRACE_CONTEXT_H_ -#define SMITHY_HTTP_TRACE_CONTEXT_H_ +#ifndef OPAL_HTTP_TRACE_CONTEXT_H_ +#define OPAL_HTTP_TRACE_CONTEXT_H_ #include #include @@ -31,4 +31,4 @@ std::string GenerateSpanId(); } // namespace opal::http -#endif // SMITHY_HTTP_TRACE_CONTEXT_H_ +#endif // OPAL_HTTP_TRACE_CONTEXT_H_ diff --git a/runtime/include/smithy/http/transport.h b/runtime/include/opal/http/transport.h similarity index 88% rename from runtime/include/smithy/http/transport.h rename to runtime/include/opal/http/transport.h index 7c8fd648..d98575b2 100644 --- a/runtime/include/smithy/http/transport.h +++ b/runtime/include/opal/http/transport.h @@ -1,12 +1,12 @@ -#ifndef SMITHY_HTTP_TRANSPORT_H_ -#define SMITHY_HTTP_TRANSPORT_H_ +#ifndef OPAL_HTTP_TRANSPORT_H_ +#define OPAL_HTTP_TRANSPORT_H_ #include #include #include -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" namespace opal::http { @@ -40,7 +40,7 @@ class HttpClient { // What a server transport calls for each incoming request. Handlers express // failures as HTTP responses; a handler that nonetheless throws is contained -// by the transport (see smithy/http/server_dispatch.h) as a 500 with a +// by the transport (see opal/http/server_dispatch.h) as a 500 with a // correlation id rather than taking down the process. using RequestHandler = std::function; @@ -56,4 +56,4 @@ class HttpServerTransport { } // namespace opal::http -#endif // SMITHY_HTTP_TRANSPORT_H_ +#endif // OPAL_HTTP_TRANSPORT_H_ diff --git a/runtime/include/smithy/http/uri.h b/runtime/include/opal/http/uri.h similarity index 95% rename from runtime/include/smithy/http/uri.h rename to runtime/include/opal/http/uri.h index b5fb2187..ceda9ecc 100644 --- a/runtime/include/smithy/http/uri.h +++ b/runtime/include/opal/http/uri.h @@ -1,12 +1,12 @@ -#ifndef SMITHY_HTTP_URI_H_ -#define SMITHY_HTTP_URI_H_ +#ifndef OPAL_HTTP_URI_H_ +#define OPAL_HTTP_URI_H_ #include #include #include #include -#include "smithy/core/outcome.h" +#include "opal/core/outcome.h" namespace opal::http { @@ -70,4 +70,4 @@ Outcome ParseEndpoint(std::string_view url); } // namespace opal::http -#endif // SMITHY_HTTP_URI_H_ +#endif // OPAL_HTTP_URI_H_ diff --git a/runtime/include/smithy/http/websocket.h b/runtime/include/opal/http/websocket.h similarity index 98% rename from runtime/include/smithy/http/websocket.h rename to runtime/include/opal/http/websocket.h index ec68b6ee..d622460e 100644 --- a/runtime/include/smithy/http/websocket.h +++ b/runtime/include/opal/http/websocket.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_HTTP_WEBSOCKET_H_ -#define SMITHY_HTTP_WEBSOCKET_H_ +#ifndef OPAL_HTTP_WEBSOCKET_H_ +#define OPAL_HTTP_WEBSOCKET_H_ #include #include @@ -7,9 +7,9 @@ #include #include -#include "smithy/eventstream/frame.h" -#include "smithy/http/headers.h" -#include "smithy/http/transport.h" +#include "opal/eventstream/frame.h" +#include "opal/http/headers.h" +#include "opal/http/transport.h" namespace opal::http { @@ -338,4 +338,4 @@ class BeastWebSocketClient { } // namespace opal::http -#endif // SMITHY_HTTP_WEBSOCKET_H_ +#endif // OPAL_HTTP_WEBSOCKET_H_ diff --git a/runtime/include/smithy/http/websocket_pair.h b/runtime/include/opal/http/websocket_pair.h similarity index 93% rename from runtime/include/smithy/http/websocket_pair.h rename to runtime/include/opal/http/websocket_pair.h index b0abef56..b36adc80 100644 --- a/runtime/include/smithy/http/websocket_pair.h +++ b/runtime/include/opal/http/websocket_pair.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_HTTP_WEBSOCKET_PAIR_H_ -#define SMITHY_HTTP_WEBSOCKET_PAIR_H_ +#ifndef OPAL_HTTP_WEBSOCKET_PAIR_H_ +#define OPAL_HTTP_WEBSOCKET_PAIR_H_ #include #include #include -#include "smithy/http/websocket.h" +#include "opal/http/websocket.h" namespace opal::http { @@ -48,4 +48,4 @@ class InMemoryWebSocketPair { } // namespace opal::http -#endif // SMITHY_HTTP_WEBSOCKET_PAIR_H_ +#endif // OPAL_HTTP_WEBSOCKET_PAIR_H_ diff --git a/runtime/include/smithy/json/json.h b/runtime/include/opal/json/json.h similarity index 83% rename from runtime/include/smithy/json/json.h rename to runtime/include/opal/json/json.h index 6439d764..fdf4491e 100644 --- a/runtime/include/smithy/json/json.h +++ b/runtime/include/opal/json/json.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_JSON_JSON_H_ -#define SMITHY_JSON_JSON_H_ +#ifndef OPAL_JSON_JSON_H_ +#define OPAL_JSON_JSON_H_ #include #include -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" namespace opal::json { @@ -23,4 +23,4 @@ Outcome Decode(std::string_view text); } // namespace opal::json -#endif // SMITHY_JSON_JSON_H_ +#endif // OPAL_JSON_JSON_H_ diff --git a/runtime/include/smithy/server/access_log.h b/runtime/include/opal/server/access_log.h similarity index 96% rename from runtime/include/smithy/server/access_log.h rename to runtime/include/opal/server/access_log.h index d8385e78..6412c65a 100644 --- a/runtime/include/smithy/server/access_log.h +++ b/runtime/include/opal/server/access_log.h @@ -1,11 +1,11 @@ -#ifndef SMITHY_SERVER_ACCESS_LOG_H_ -#define SMITHY_SERVER_ACCESS_LOG_H_ +#ifndef OPAL_SERVER_ACCESS_LOG_H_ +#define OPAL_SERVER_ACCESS_LOG_H_ #include #include #include -#include "smithy/server/middleware.h" +#include "opal/server/middleware.h" namespace opal::server { @@ -84,4 +84,4 @@ std::string FormatAccessLog(const RequestObservation& observation, } // namespace opal::server -#endif // SMITHY_SERVER_ACCESS_LOG_H_ +#endif // OPAL_SERVER_ACCESS_LOG_H_ diff --git a/runtime/include/smithy/server/metrics.h b/runtime/include/opal/server/metrics.h similarity index 99% rename from runtime/include/smithy/server/metrics.h rename to runtime/include/opal/server/metrics.h index fc87f070..aed3a530 100644 --- a/runtime/include/smithy/server/metrics.h +++ b/runtime/include/opal/server/metrics.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_SERVER_METRICS_H_ -#define SMITHY_SERVER_METRICS_H_ +#ifndef OPAL_SERVER_METRICS_H_ +#define OPAL_SERVER_METRICS_H_ #include #include @@ -12,8 +12,8 @@ #include #include -#include "smithy/core/fatal.h" -#include "smithy/server/middleware.h" +#include "opal/core/fatal.h" +#include "opal/server/middleware.h" namespace opal::server { @@ -490,4 +490,4 @@ Middleware MetricsEndpoint(std::shared_ptr registry, } // namespace opal::server -#endif // SMITHY_SERVER_METRICS_H_ +#endif // OPAL_SERVER_METRICS_H_ diff --git a/runtime/include/smithy/server/middleware.h b/runtime/include/opal/server/middleware.h similarity index 97% rename from runtime/include/smithy/server/middleware.h rename to runtime/include/opal/server/middleware.h index 6e1cc8c4..7fb2cd5e 100644 --- a/runtime/include/smithy/server/middleware.h +++ b/runtime/include/opal/server/middleware.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_SERVER_MIDDLEWARE_H_ -#define SMITHY_SERVER_MIDDLEWARE_H_ +#ifndef OPAL_SERVER_MIDDLEWARE_H_ +#define OPAL_SERVER_MIDDLEWARE_H_ #include #include @@ -9,8 +9,8 @@ #include #include -#include "smithy/http/forwarded.h" -#include "smithy/http/transport.h" +#include "opal/http/forwarded.h" +#include "opal/http/transport.h" namespace opal::server { @@ -111,7 +111,7 @@ Middleware HealthEndpoint(std::string path = "/health", std::vector #include #include #include -#include "smithy/http/message.h" +#include "opal/http/message.h" namespace opal::server { @@ -47,4 +47,4 @@ std::function(const http::HttpRequest&)> Requi } // namespace opal::server -#endif // SMITHY_SERVER_ORIGIN_GATE_H_ +#endif // OPAL_SERVER_ORIGIN_GATE_H_ diff --git a/runtime/include/smithy/server/router.h b/runtime/include/opal/server/router.h similarity index 96% rename from runtime/include/smithy/server/router.h rename to runtime/include/opal/server/router.h index 83a79c54..b04ddbc1 100644 --- a/runtime/include/smithy/server/router.h +++ b/runtime/include/opal/server/router.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_SERVER_ROUTER_H_ -#define SMITHY_SERVER_ROUTER_H_ +#ifndef OPAL_SERVER_ROUTER_H_ +#define OPAL_SERVER_ROUTER_H_ #include #include @@ -7,9 +7,9 @@ #include #include -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" -#include "smithy/http/uri.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" +#include "opal/http/uri.h" namespace opal::server { @@ -124,4 +124,4 @@ struct ValidationFailure { } // namespace opal::server -#endif // SMITHY_SERVER_ROUTER_H_ +#endif // OPAL_SERVER_ROUTER_H_ diff --git a/runtime/include/smithy/server/session_registry.h b/runtime/include/opal/server/session_registry.h similarity index 99% rename from runtime/include/smithy/server/session_registry.h rename to runtime/include/opal/server/session_registry.h index f90a9ce3..a33bd62c 100644 --- a/runtime/include/smithy/server/session_registry.h +++ b/runtime/include/opal/server/session_registry.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_SERVER_SESSION_REGISTRY_H_ -#define SMITHY_SERVER_SESSION_REGISTRY_H_ +#ifndef OPAL_SERVER_SESSION_REGISTRY_H_ +#define OPAL_SERVER_SESSION_REGISTRY_H_ #include #include @@ -17,7 +17,7 @@ #include #include -#include "smithy/eventstream/event_stream.h" +#include "opal/eventstream/event_stream.h" namespace opal::server { @@ -833,4 +833,4 @@ class SessionRegistry { } // namespace opal::server -#endif // SMITHY_SERVER_SESSION_REGISTRY_H_ +#endif // OPAL_SERVER_SESSION_REGISTRY_H_ diff --git a/runtime/include/smithy/server/websocket_router.h b/runtime/include/opal/server/websocket_router.h similarity index 96% rename from runtime/include/smithy/server/websocket_router.h rename to runtime/include/opal/server/websocket_router.h index 2141ac8e..2cbfb75a 100644 --- a/runtime/include/smithy/server/websocket_router.h +++ b/runtime/include/opal/server/websocket_router.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_SERVER_WEBSOCKET_ROUTER_H_ -#define SMITHY_SERVER_WEBSOCKET_ROUTER_H_ +#ifndef OPAL_SERVER_WEBSOCKET_ROUTER_H_ +#define OPAL_SERVER_WEBSOCKET_ROUTER_H_ #include #include @@ -9,10 +9,10 @@ #include #include -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" -#include "smithy/http/websocket.h" -#include "smithy/server/router.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" +#include "opal/http/websocket.h" +#include "opal/server/router.h" namespace opal::server { @@ -145,4 +145,4 @@ class WebSocketRouter { } // namespace opal::server -#endif // SMITHY_SERVER_WEBSOCKET_ROUTER_H_ +#endif // OPAL_SERVER_WEBSOCKET_ROUTER_H_ diff --git a/runtime/src/cbor/cbor.cc b/runtime/src/cbor/cbor.cc index 8b322f3a..0af00bf6 100644 --- a/runtime/src/cbor/cbor.cc +++ b/runtime/src/cbor/cbor.cc @@ -1,4 +1,4 @@ -#include "smithy/cbor/cbor.h" +#include "opal/cbor/cbor.h" #include #include diff --git a/runtime/src/client/observability.cc b/runtime/src/client/observability.cc index a3060526..6e410704 100644 --- a/runtime/src/client/observability.cc +++ b/runtime/src/client/observability.cc @@ -1,4 +1,4 @@ -#include "smithy/client/observability.h" +#include "opal/client/observability.h" #include diff --git a/runtime/src/client/retry.cc b/runtime/src/client/retry.cc index 5ff7deab..a10c3367 100644 --- a/runtime/src/client/retry.cc +++ b/runtime/src/client/retry.cc @@ -1,4 +1,4 @@ -#include "smithy/client/retry.h" +#include "opal/client/retry.h" #include #include diff --git a/runtime/src/compression/gzip.cc b/runtime/src/compression/gzip.cc index 5375544d..c7b67e55 100644 --- a/runtime/src/compression/gzip.cc +++ b/runtime/src/compression/gzip.cc @@ -1,7 +1,7 @@ -#include "smithy/compression/gzip.h" +#include "opal/compression/gzip.h" -#include "smithy/compression/gzip_test_peer.h" -#include "smithy/core/fatal.h" +#include "opal/compression/gzip_test_peer.h" +#include "opal/core/fatal.h" // next_in becomes const Bytef*, so the feed below takes string_view bytes // verbatim — no const_cast (ES.50, issue #109). diff --git a/runtime/src/core/base64.cc b/runtime/src/core/base64.cc index a15e848c..abd0ad7d 100644 --- a/runtime/src/core/base64.cc +++ b/runtime/src/core/base64.cc @@ -1,4 +1,4 @@ -#include "smithy/core/base64.h" +#include "opal/core/base64.h" #include #include diff --git a/runtime/src/core/document_serde.cc b/runtime/src/core/document_serde.cc index cccd8a81..b0c7a65c 100644 --- a/runtime/src/core/document_serde.cc +++ b/runtime/src/core/document_serde.cc @@ -1,4 +1,4 @@ -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" #include #include @@ -7,7 +7,7 @@ #include #include -#include "smithy/core/base64.h" +#include "opal/core/base64.h" namespace opal { diff --git a/runtime/src/core/regex.cc b/runtime/src/core/regex.cc index 7987b9f5..3a88b45f 100644 --- a/runtime/src/core/regex.cc +++ b/runtime/src/core/regex.cc @@ -1,10 +1,10 @@ -#include "smithy/core/regex.h" +#include "opal/core/regex.h" #include #include #include -#include "smithy/core/error.h" +#include "opal/core/error.h" namespace opal { namespace { diff --git a/runtime/src/core/text.cc b/runtime/src/core/text.cc index 33081ba1..fb178f62 100644 --- a/runtime/src/core/text.cc +++ b/runtime/src/core/text.cc @@ -1,4 +1,4 @@ -#include "smithy/core/text.h" +#include "opal/core/text.h" namespace opal { diff --git a/runtime/src/core/timestamp.cc b/runtime/src/core/timestamp.cc index b2a8bedf..d362afc8 100644 --- a/runtime/src/core/timestamp.cc +++ b/runtime/src/core/timestamp.cc @@ -1,4 +1,4 @@ -#include "smithy/core/timestamp.h" +#include "opal/core/timestamp.h" #include #include diff --git a/runtime/src/core/uuid.cc b/runtime/src/core/uuid.cc index cd3b1819..75663352 100644 --- a/runtime/src/core/uuid.cc +++ b/runtime/src/core/uuid.cc @@ -1,4 +1,4 @@ -#include "smithy/core/uuid.h" +#include "opal/core/uuid.h" #include #include diff --git a/runtime/src/core/version.cc b/runtime/src/core/version.cc index 4390fc85..a910c450 100644 --- a/runtime/src/core/version.cc +++ b/runtime/src/core/version.cc @@ -1,4 +1,4 @@ -#include "smithy/core/version.h" +#include "opal/core/version.h" namespace opal { diff --git a/runtime/src/eventstream/envelope.cc b/runtime/src/eventstream/envelope.cc index 62f3d4e7..2f5d4dbf 100644 --- a/runtime/src/eventstream/envelope.cc +++ b/runtime/src/eventstream/envelope.cc @@ -1,9 +1,9 @@ -#include "smithy/eventstream/envelope.h" +#include "opal/eventstream/envelope.h" #include #include -#include "smithy/core/error.h" +#include "opal/core/error.h" namespace opal::eventstream { namespace { diff --git a/runtime/src/eventstream/frame.cc b/runtime/src/eventstream/frame.cc index 4b745a0f..2aff46cb 100644 --- a/runtime/src/eventstream/frame.cc +++ b/runtime/src/eventstream/frame.cc @@ -1,9 +1,9 @@ -#include "smithy/eventstream/frame.h" +#include "opal/eventstream/frame.h" #include -#include "smithy/core/error.h" -#include "smithy/core/overloaded.h" +#include "opal/core/error.h" +#include "opal/core/overloaded.h" namespace opal::eventstream { namespace { diff --git a/runtime/src/eventstream/json_frame.cc b/runtime/src/eventstream/json_frame.cc index 5b349769..8068c0d3 100644 --- a/runtime/src/eventstream/json_frame.cc +++ b/runtime/src/eventstream/json_frame.cc @@ -1,14 +1,14 @@ -#include "smithy/eventstream/json_frame.h" +#include "opal/eventstream/json_frame.h" #include #include #include #include -#include "smithy/core/document.h" -#include "smithy/core/error.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/json/json.h" +#include "opal/core/document.h" +#include "opal/core/error.h" +#include "opal/eventstream/envelope.h" +#include "opal/json/json.h" namespace opal::eventstream { namespace { diff --git a/runtime/src/eventstream/jsonrpc_frame.cc b/runtime/src/eventstream/jsonrpc_frame.cc index 86678ceb..e50a4b39 100644 --- a/runtime/src/eventstream/jsonrpc_frame.cc +++ b/runtime/src/eventstream/jsonrpc_frame.cc @@ -1,13 +1,13 @@ -#include "smithy/eventstream/jsonrpc_frame.h" +#include "opal/eventstream/jsonrpc_frame.h" #include #include #include #include -#include "smithy/core/error.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/json/json.h" +#include "opal/core/error.h" +#include "opal/eventstream/envelope.h" +#include "opal/json/json.h" namespace opal::eventstream { namespace { diff --git a/runtime/src/eventstream/jsonrpc_stream_socket.cc b/runtime/src/eventstream/jsonrpc_stream_socket.cc index 3ca8c705..9ef8047f 100644 --- a/runtime/src/eventstream/jsonrpc_stream_socket.cc +++ b/runtime/src/eventstream/jsonrpc_stream_socket.cc @@ -1,4 +1,4 @@ -#include "smithy/eventstream/jsonrpc_stream_socket.h" +#include "opal/eventstream/jsonrpc_stream_socket.h" #include #include @@ -6,9 +6,9 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/error.h" -#include "smithy/eventstream/jsonrpc_frame.h" +#include "opal/core/blob.h" +#include "opal/core/error.h" +#include "opal/eventstream/jsonrpc_frame.h" namespace opal::eventstream { namespace { diff --git a/runtime/src/http/beast_transport.cc b/runtime/src/http/beast_transport.cc index ab14b017..7be2b389 100644 --- a/runtime/src/http/beast_transport.cc +++ b/runtime/src/http/beast_transport.cc @@ -1,4 +1,4 @@ -#include "smithy/http/beast_transport.h" +#include "opal/http/beast_transport.h" #include @@ -35,12 +35,12 @@ #include #include -#include "smithy/client/config.h" -#include "smithy/core/exception_guard.h" -#include "smithy/eventstream/json_frame.h" -#include "smithy/http/headers.h" -#include "smithy/http/server_dispatch.h" -#include "smithy/http/uri.h" +#include "opal/client/config.h" +#include "opal/core/exception_guard.h" +#include "opal/eventstream/json_frame.h" +#include "opal/http/headers.h" +#include "opal/http/server_dispatch.h" +#include "opal/http/uri.h" namespace opal::http { namespace { @@ -66,10 +66,10 @@ void RunIoThread(asio::io_context& io, const char* which) { io.run(); return; // clean drain: no more work, thread exits } catch (const std::exception& e) { - std::clog << "smithy: " << which << " io thread caught: " << e.what() + std::clog << "opal: " << which << " io thread caught: " << e.what() << "; re-entering run()\n"; } catch (...) { - std::clog << "smithy: " << which + std::clog << "opal: " << which << " io thread caught a non-std exception; re-entering run()\n"; } } @@ -85,9 +85,9 @@ void InvokeCompletion(const char* which, Fn&& fn, Args&&... args) { try { std::forward(fn)(std::forward(args)...); } catch (const std::exception& e) { - std::clog << "smithy: " << which << " callback threw: " << e.what() << "\n"; + std::clog << "opal: " << which << " callback threw: " << e.what() << "\n"; } catch (...) { - std::clog << "smithy: " << which << " callback threw a non-std exception\n"; + std::clog << "opal: " << which << " callback threw a non-std exception\n"; } } @@ -993,9 +993,9 @@ std::optional InvokeGateGuarded( try { return gate(request); } catch (const std::exception& e) { - std::clog << "smithy: websocket_gate threw: " << e.what() << "\n"; + std::clog << "opal: websocket_gate threw: " << e.what() << "\n"; } catch (...) { - std::clog << "smithy: websocket_gate threw a non-std exception\n"; + std::clog << "opal: websocket_gate threw a non-std exception\n"; } HttpResponse refusal; refusal.status = 500; @@ -1007,9 +1007,9 @@ void InvokeServeGuarded(const std::function { try { opts.on_rejected(rejected); } catch (const std::exception& e) { - std::clog << "smithy: on_rejected observer threw: " << e.what() << "\n"; + std::clog << "opal: on_rejected observer threw: " << e.what() << "\n"; } catch (...) { - std::clog << "smithy: on_rejected observer threw a non-std exception\n"; + std::clog << "opal: on_rejected observer threw a non-std exception\n"; } } @@ -1290,9 +1290,9 @@ struct BeastServerTransport::State : std::enable_shared_from_this { try { opts.on_connection_event(event); } catch (const std::exception& e) { - std::clog << "smithy: on_connection_event observer threw: " << e.what() << "\n"; + std::clog << "opal: on_connection_event observer threw: " << e.what() << "\n"; } catch (...) { - std::clog << "smithy: on_connection_event observer threw a non-std exception\n"; + std::clog << "opal: on_connection_event observer threw a non-std exception\n"; } } @@ -1911,7 +1911,7 @@ void BeastServerTransport::Shutdown() noexcept { } else { // An unhandled wedge must never be silent (the server_dispatch // convention): this line is the operator's only trace of the leak. - std::clog << "smithy: Stop() grace expired with a handler still running; " + std::clog << "opal: Stop() grace expired with a handler still running; " "abandoning teardown (state deliberately leaks; it is " "reclaimed if the handler ever returns)\n" << std::flush; diff --git a/runtime/src/http/forwarded.cc b/runtime/src/http/forwarded.cc index fe3271d6..c5026b45 100644 --- a/runtime/src/http/forwarded.cc +++ b/runtime/src/http/forwarded.cc @@ -1,4 +1,4 @@ -#include "smithy/http/forwarded.h" +#include "opal/http/forwarded.h" #include @@ -6,7 +6,7 @@ #include #include -#include "smithy/http/headers.h" +#include "opal/http/headers.h" namespace opal::http { namespace { diff --git a/runtime/src/http/headers.cc b/runtime/src/http/headers.cc index 55134700..b881a3c8 100644 --- a/runtime/src/http/headers.cc +++ b/runtime/src/http/headers.cc @@ -1,4 +1,4 @@ -#include "smithy/http/headers.h" +#include "opal/http/headers.h" #include #include diff --git a/runtime/src/http/http1.cc b/runtime/src/http/http1.cc index 3890f33f..773de0c7 100644 --- a/runtime/src/http/http1.cc +++ b/runtime/src/http/http1.cc @@ -1,11 +1,11 @@ -#include "smithy/http/http1.h" +#include "opal/http/http1.h" #include #include #include #include -#include "smithy/core/error.h" +#include "opal/core/error.h" namespace opal::http { namespace { diff --git a/runtime/src/http/server_dispatch.cc b/runtime/src/http/server_dispatch.cc index e746b084..3ab62210 100644 --- a/runtime/src/http/server_dispatch.cc +++ b/runtime/src/http/server_dispatch.cc @@ -1,4 +1,4 @@ -#include "smithy/http/server_dispatch.h" +#include "opal/http/server_dispatch.h" #include @@ -6,8 +6,8 @@ #include #include -#include "smithy/core/exception_guard.h" -#include "smithy/http/trace_context.h" +#include "opal/core/exception_guard.h" +#include "opal/http/trace_context.h" namespace opal::http { namespace { @@ -39,7 +39,7 @@ HttpResponse InternalError(const HttpRequest& request, const std::string& what) // The built-in default sink. A structured-logging seam can replace this, but // an unhandled handler exception must never be silent — this line is often // the only server-side trace of a 500. - std::clog << "smithy: handler threw; correlation-id=" << correlation_id << " request=\"" + std::clog << "opal: handler threw; correlation-id=" << correlation_id << " request=\"" << request.method << ' ' << request.target << "\" what=\"" << what << "\"\n"; HttpResponse response; response.status = 500; diff --git a/runtime/src/http/socket_transport.cc b/runtime/src/http/socket_transport.cc index 704300cb..e21fae53 100644 --- a/runtime/src/http/socket_transport.cc +++ b/runtime/src/http/socket_transport.cc @@ -1,4 +1,4 @@ -#include "smithy/http/socket_transport.h" +#include "opal/http/socket_transport.h" #include #include @@ -11,10 +11,10 @@ #include #include -#include "smithy/core/exception_guard.h" -#include "smithy/http/headers.h" -#include "smithy/http/http1.h" -#include "smithy/http/server_dispatch.h" +#include "opal/core/exception_guard.h" +#include "opal/http/headers.h" +#include "opal/http/http1.h" +#include "opal/http/server_dispatch.h" namespace opal::http { namespace { @@ -171,7 +171,7 @@ Outcome SocketHttpServer::Start(RequestHandler handler) { // BeastServerTransport, but a deployment that reached for this class anyway // deserves the operator-visible trace, not a silent one-request-at-a-time // service (the server_dispatch clog convention). - std::clog << "smithy: SocketHttpServer is a test-only transport (one connection at a time, " + std::clog << "opal: SocketHttpServer is a test-only transport (one connection at a time, " "loopback only); production serving is BeastServerTransport\n"; accept_thread_ = std::thread([this] { AcceptLoop(); }); return Unit{}; diff --git a/runtime/src/http/trace_context.cc b/runtime/src/http/trace_context.cc index 0bd094e5..507f79fa 100644 --- a/runtime/src/http/trace_context.cc +++ b/runtime/src/http/trace_context.cc @@ -1,4 +1,4 @@ -#include "smithy/http/trace_context.h" +#include "opal/http/trace_context.h" #include #include diff --git a/runtime/src/http/uri.cc b/runtime/src/http/uri.cc index 14b89036..fd47dc0c 100644 --- a/runtime/src/http/uri.cc +++ b/runtime/src/http/uri.cc @@ -1,4 +1,4 @@ -#include "smithy/http/uri.h" +#include "opal/http/uri.h" #include #include diff --git a/runtime/src/http/websocket_pair.cc b/runtime/src/http/websocket_pair.cc index 11f1769f..10c023a7 100644 --- a/runtime/src/http/websocket_pair.cc +++ b/runtime/src/http/websocket_pair.cc @@ -1,4 +1,4 @@ -#include "smithy/http/websocket_pair.h" +#include "opal/http/websocket_pair.h" #include #include @@ -12,7 +12,7 @@ #include #include -#include "smithy/eventstream/frame.h" +#include "opal/eventstream/frame.h" namespace opal::http { namespace { diff --git a/runtime/src/json/json.cc b/runtime/src/json/json.cc index 90c0a1f4..acfec033 100644 --- a/runtime/src/json/json.cc +++ b/runtime/src/json/json.cc @@ -1,11 +1,11 @@ -#include "smithy/json/json.h" +#include "opal/json/json.h" #include #include #include #include -#include "smithy/core/base64.h" +#include "opal/core/base64.h" namespace opal::json { namespace { diff --git a/runtime/src/server/access_log.cc b/runtime/src/server/access_log.cc index 6a91d57e..96ba2c1a 100644 --- a/runtime/src/server/access_log.cc +++ b/runtime/src/server/access_log.cc @@ -1,4 +1,4 @@ -#include "smithy/server/access_log.h" +#include "opal/server/access_log.h" #include #include @@ -6,9 +6,9 @@ #include #include -#include "smithy/core/fatal.h" -#include "smithy/http/forwarded.h" -#include "smithy/http/trace_context.h" +#include "opal/core/fatal.h" +#include "opal/http/forwarded.h" +#include "opal/http/trace_context.h" namespace opal::server { diff --git a/runtime/src/server/metrics.cc b/runtime/src/server/metrics.cc index ce9541c8..331ed659 100644 --- a/runtime/src/server/metrics.cc +++ b/runtime/src/server/metrics.cc @@ -1,4 +1,4 @@ -#include "smithy/server/metrics.h" +#include "opal/server/metrics.h" #include #include @@ -9,7 +9,7 @@ #include #include -#include "smithy/core/fatal.h" +#include "opal/core/fatal.h" namespace opal::server { namespace { diff --git a/runtime/src/server/middleware.cc b/runtime/src/server/middleware.cc index 3c9c19dc..5b7e3cca 100644 --- a/runtime/src/server/middleware.cc +++ b/runtime/src/server/middleware.cc @@ -1,4 +1,4 @@ -#include "smithy/server/middleware.h" +#include "opal/server/middleware.h" #include #include @@ -9,8 +9,8 @@ #include #include -#include "smithy/core/exception_guard.h" -#include "smithy/core/fatal.h" +#include "opal/core/exception_guard.h" +#include "opal/core/fatal.h" namespace opal::server { @@ -72,15 +72,15 @@ namespace { // -fno-exceptions, where the sink cannot throw. template void CallContained(const Callback& callback, const Observation& observation, const char* which) { - opal::internal::Contain( - [&] { callback(observation); }, - [&](const char* what) { - if (what != nullptr) { - std::clog << "smithy: " << which << " callback threw: " << what << "\n"; - } else { - std::clog << "smithy: " << which << " callback threw a non-std exception\n"; - } - }); + opal::internal::Contain([&] { callback(observation); }, + [&](const char* what) { + if (what != nullptr) { + std::clog << "opal: " << which << " callback threw: " << what << "\n"; + } else { + std::clog << "opal: " << which + << " callback threw a non-std exception\n"; + } + }); } // Same containment policy for readiness probes: a throw is a failing @@ -92,9 +92,9 @@ bool ProbeContained(const ReadinessCheck& check) { [&] { return check.probe(); }, [&](const char* what) -> bool { if (what != nullptr) { - std::clog << "smithy: readiness probe '" << check.name << "' threw: " << what << "\n"; + std::clog << "opal: readiness probe '" << check.name << "' threw: " << what << "\n"; } else { - std::clog << "smithy: readiness probe '" << check.name << "' threw a non-std exception\n"; + std::clog << "opal: readiness probe '" << check.name << "' threw a non-std exception\n"; } return false; }); diff --git a/runtime/src/server/origin_gate.cc b/runtime/src/server/origin_gate.cc index 516d6b44..975b51a4 100644 --- a/runtime/src/server/origin_gate.cc +++ b/runtime/src/server/origin_gate.cc @@ -1,4 +1,4 @@ -#include "smithy/server/origin_gate.h" +#include "opal/server/origin_gate.h" #include #include @@ -7,9 +7,9 @@ #include #include -#include "smithy/core/fatal.h" -#include "smithy/http/uri.h" -#include "smithy/server/router.h" +#include "opal/core/fatal.h" +#include "opal/http/uri.h" +#include "opal/server/router.h" namespace opal::server { namespace { diff --git a/runtime/src/server/router.cc b/runtime/src/server/router.cc index b275f9ca..f4164d65 100644 --- a/runtime/src/server/router.cc +++ b/runtime/src/server/router.cc @@ -1,9 +1,9 @@ -#include "smithy/server/router.h" +#include "opal/server/router.h" #include #include -#include "smithy/http/uri.h" +#include "opal/http/uri.h" namespace opal::server { diff --git a/runtime/src/server/websocket_router.cc b/runtime/src/server/websocket_router.cc index 5397175a..a7b43c5e 100644 --- a/runtime/src/server/websocket_router.cc +++ b/runtime/src/server/websocket_router.cc @@ -1,11 +1,11 @@ -#include "smithy/server/websocket_router.h" +#include "opal/server/websocket_router.h" #include #include #include #include -#include "smithy/http/uri.h" +#include "opal/http/uri.h" namespace opal::server { @@ -122,7 +122,7 @@ std::function WebSocketRouter: // looking — an async-handler server mounted on on_websocket otherwise // fails one silent upgrade at a time (the per-upgrade line below). if (seam_ == Seam::kShared) { - std::clog << "smithy: router: every route here serves the shared seam (an async-handler " + std::clog << "opal: router: every route here serves the shared seam (an async-handler " "server); mount options.on_websocket_session = ServeSession(), not Serve()\n"; } return [this](const http::HttpRequest& request, http::WebSocket& socket) { @@ -136,7 +136,7 @@ std::function WebSocketRouter: // The wrong dispatcher for this router's seam: an AddSession route // cannot be served borrowed. Never bad_function_call on a transport // thread — say what to mount, close, carry on. - std::clog << "smithy: router: route '" << best->operation + std::clog << "opal: router: route '" << best->operation << "' serves the shared seam; mount ServeSession(), not Serve()\n"; socket.Close(); return; @@ -148,7 +148,7 @@ std::function WebSocketRouter: std::function)> WebSocketRouter::ServeSession() const { if (seam_ == Seam::kBorrowed) { - std::clog << "smithy: router: every route here serves the borrowed seam (a blocking-handler " + std::clog << "opal: router: every route here serves the borrowed seam (a blocking-handler " "server); mount options.on_websocket = Serve(), not ServeSession()\n"; } return [this](const http::HttpRequest& request, std::shared_ptr socket) { @@ -159,7 +159,7 @@ WebSocketRouter::ServeSession() const { return; } if (!best->serve_session) { - std::clog << "smithy: router: route '" << best->operation + std::clog << "opal: router: route '" << best->operation << "' serves the borrowed seam; mount Serve(), not ServeSession()\n"; socket->Close(); return; diff --git a/runtime/testing/include/smithy/testing/connection_event_recorder.h b/runtime/testing/include/opal/testing/connection_event_recorder.h similarity index 87% rename from runtime/testing/include/smithy/testing/connection_event_recorder.h rename to runtime/testing/include/opal/testing/connection_event_recorder.h index f04ff672..5449c4a0 100644 --- a/runtime/testing/include/smithy/testing/connection_event_recorder.h +++ b/runtime/testing/include/opal/testing/connection_event_recorder.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_TESTING_CONNECTION_EVENT_RECORDER_H_ -#define SMITHY_TESTING_CONNECTION_EVENT_RECORDER_H_ +#ifndef OPAL_TESTING_CONNECTION_EVENT_RECORDER_H_ +#define OPAL_TESTING_CONNECTION_EVENT_RECORDER_H_ #include #include @@ -8,7 +8,7 @@ #include #include -#include "smithy/http/beast_transport.h" +#include "opal/http/beast_transport.h" namespace opal::testing { @@ -45,4 +45,4 @@ struct ConnectionEventRecorder { } // namespace opal::testing -#endif // SMITHY_TESTING_CONNECTION_EVENT_RECORDER_H_ +#endif // OPAL_TESTING_CONNECTION_EVENT_RECORDER_H_ diff --git a/runtime/testing/include/smithy/testing/protocol_test.h b/runtime/testing/include/opal/testing/protocol_test.h similarity index 96% rename from runtime/testing/include/smithy/testing/protocol_test.h rename to runtime/testing/include/opal/testing/protocol_test.h index 1341aba4..215b8823 100644 --- a/runtime/testing/include/smithy/testing/protocol_test.h +++ b/runtime/testing/include/opal/testing/protocol_test.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_TESTING_PROTOCOL_TEST_H_ -#define SMITHY_TESTING_PROTOCOL_TEST_H_ +#ifndef OPAL_TESTING_PROTOCOL_TEST_H_ +#define OPAL_TESTING_PROTOCOL_TEST_H_ // Support library for the generated Smithy protocol conformance tests // (smithy.test#httpRequestTests / #httpResponseTests). Test-only; ships in @@ -16,14 +16,14 @@ #include #include -#include "smithy/cbor/cbor.h" -#include "smithy/core/base64.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" -#include "smithy/http/transport.h" -#include "smithy/http/uri.h" -#include "smithy/json/json.h" +#include "opal/cbor/cbor.h" +#include "opal/core/base64.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" +#include "opal/http/transport.h" +#include "opal/http/uri.h" +#include "opal/json/json.h" namespace opal::testing { @@ -260,4 +260,4 @@ inline ::testing::AssertionResult CborBodyEqualsBase64(const std::string& expect } // namespace opal::testing -#endif // SMITHY_TESTING_PROTOCOL_TEST_H_ +#endif // OPAL_TESTING_PROTOCOL_TEST_H_ diff --git a/runtime/testing/include/smithy/testing/tls_test_identity.h b/runtime/testing/include/opal/testing/tls_test_identity.h similarity index 96% rename from runtime/testing/include/smithy/testing/tls_test_identity.h rename to runtime/testing/include/opal/testing/tls_test_identity.h index d0f712d7..2ac76f30 100644 --- a/runtime/testing/include/smithy/testing/tls_test_identity.h +++ b/runtime/testing/include/opal/testing/tls_test_identity.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_TESTING_TLS_TEST_IDENTITY_H_ -#define SMITHY_TESTING_TLS_TEST_IDENTITY_H_ +#ifndef OPAL_TESTING_TLS_TEST_IDENTITY_H_ +#define OPAL_TESTING_TLS_TEST_IDENTITY_H_ // The test TLS identities every suite shares (//runtime:test_tls_identity). // Both are self-signed and valid to 2046, so either can be handed to a client @@ -74,4 +74,4 @@ sjQDqORDjHUlEMiiDXgz4ZtY2GKhRANCAATaUMXuCmSupqLVRIfYNg2LwAq9GNyY } // namespace opal::testing -#endif // SMITHY_TESTING_TLS_TEST_IDENTITY_H_ +#endif // OPAL_TESTING_TLS_TEST_IDENTITY_H_ diff --git a/runtime/testing/include/smithy/testing/websocket_contract_test.h b/runtime/testing/include/opal/testing/websocket_contract_test.h similarity index 98% rename from runtime/testing/include/smithy/testing/websocket_contract_test.h rename to runtime/testing/include/opal/testing/websocket_contract_test.h index 171b2148..1d8215e5 100644 --- a/runtime/testing/include/smithy/testing/websocket_contract_test.h +++ b/runtime/testing/include/opal/testing/websocket_contract_test.h @@ -1,5 +1,5 @@ -#ifndef SMITHY_TESTING_WEBSOCKET_CONTRACT_TEST_H_ -#define SMITHY_TESTING_WEBSOCKET_CONTRACT_TEST_H_ +#ifndef OPAL_TESTING_WEBSOCKET_CONTRACT_TEST_H_ +#define OPAL_TESTING_WEBSOCKET_CONTRACT_TEST_H_ // The transport-neutral half of the ADR-0019 WebSocket contract, written // once and run against every implementation (#173). @@ -50,11 +50,11 @@ #include #include -#include "smithy/core/outcome.h" -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" +#include "opal/core/outcome.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/event_stream.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" namespace opal::testing { @@ -468,4 +468,4 @@ REGISTER_TYPED_TEST_SUITE_P(WebSocketContractTest, } // namespace opal::testing -#endif // SMITHY_TESTING_WEBSOCKET_CONTRACT_TEST_H_ +#endif // OPAL_TESTING_WEBSOCKET_CONTRACT_TEST_H_ diff --git a/runtime/tests/cbor/cbor_hostile_test.cc b/runtime/tests/cbor/cbor_hostile_test.cc index ace979db..f132fa0c 100644 --- a/runtime/tests/cbor/cbor_hostile_test.cc +++ b/runtime/tests/cbor/cbor_hostile_test.cc @@ -17,7 +17,7 @@ #include #include -#include "smithy/cbor/cbor.h" +#include "opal/cbor/cbor.h" namespace opal::cbor { namespace { diff --git a/runtime/tests/cbor/cbor_property_test.cc b/runtime/tests/cbor/cbor_property_test.cc index 9257b271..27b1b746 100644 --- a/runtime/tests/cbor/cbor_property_test.cc +++ b/runtime/tests/cbor/cbor_property_test.cc @@ -6,7 +6,7 @@ #include -#include "smithy/cbor/cbor.h" +#include "opal/cbor/cbor.h" #include "tests/testing/random_document.h" namespace opal::cbor { diff --git a/runtime/tests/cbor/cbor_test.cc b/runtime/tests/cbor/cbor_test.cc index 81b1305b..1f25b0c1 100644 --- a/runtime/tests/cbor/cbor_test.cc +++ b/runtime/tests/cbor/cbor_test.cc @@ -1,4 +1,4 @@ -#include "smithy/cbor/cbor.h" +#include "opal/cbor/cbor.h" #include diff --git a/runtime/tests/client/observability_test.cc b/runtime/tests/client/observability_test.cc index 389d778c..6407bcef 100644 --- a/runtime/tests/client/observability_test.cc +++ b/runtime/tests/client/observability_test.cc @@ -1,4 +1,4 @@ -#include "smithy/client/observability.h" +#include "opal/client/observability.h" #include @@ -6,10 +6,10 @@ #include #include -#include "smithy/core/error.h" -#include "smithy/core/outcome.h" -#include "smithy/http/message.h" -#include "smithy/http/trace_context.h" +#include "opal/core/error.h" +#include "opal/core/outcome.h" +#include "opal/http/message.h" +#include "opal/http/trace_context.h" namespace { diff --git a/runtime/tests/client/pagination_test.cc b/runtime/tests/client/pagination_test.cc index c05ada4b..16e34dee 100644 --- a/runtime/tests/client/pagination_test.cc +++ b/runtime/tests/client/pagination_test.cc @@ -1,11 +1,11 @@ -// opal::PageIterator (smithy/client/pagination.h): the single-pass range +// opal::PageIterator (opal/client/pagination.h): the single-pass range // adapter generated paginators surface through begin()/end() (issue #49), so // `for (auto& page : client.PaginateX(input))` works. Iteration yields // Outcome&; a failed call is yielded exactly once and then the range // ends without calling Next() again — mirroring the generated paginator's // stop-on-first-error contract. -#include "smithy/client/pagination.h" +#include "opal/client/pagination.h" #include @@ -15,8 +15,8 @@ #include #include -#include "smithy/core/error.h" -#include "smithy/core/outcome.h" +#include "opal/core/error.h" +#include "opal/core/outcome.h" namespace opal { namespace { diff --git a/runtime/tests/client/retry_test.cc b/runtime/tests/client/retry_test.cc index e5cf5e8b..3e81e2b4 100644 --- a/runtime/tests/client/retry_test.cc +++ b/runtime/tests/client/retry_test.cc @@ -1,4 +1,4 @@ -#include "smithy/client/retry.h" +#include "opal/client/retry.h" #include @@ -8,7 +8,7 @@ #include #include -#include "smithy/core/error.h" +#include "opal/core/error.h" namespace opal { namespace { diff --git a/runtime/tests/compression/gzip_test.cc b/runtime/tests/compression/gzip_test.cc index 1679803a..3f22d64e 100644 --- a/runtime/tests/compression/gzip_test.cc +++ b/runtime/tests/compression/gzip_test.cc @@ -1,11 +1,11 @@ -#include "smithy/compression/gzip.h" +#include "opal/compression/gzip.h" #include #include #include -#include "smithy/compression/gzip_test_peer.h" +#include "opal/compression/gzip_test_peer.h" namespace opal { namespace { diff --git a/runtime/tests/core/boxed_test.cc b/runtime/tests/core/boxed_test.cc index e446c0f9..9e207d2a 100644 --- a/runtime/tests/core/boxed_test.cc +++ b/runtime/tests/core/boxed_test.cc @@ -2,7 +2,7 @@ // members — deep copy, deep equality, and compilability with the mutually // recursive struct shapes the generator emits. -#include "smithy/core/boxed.h" +#include "opal/core/boxed.h" #include diff --git a/runtime/tests/core/core_test.cc b/runtime/tests/core/core_test.cc index e63d5ea3..146de475 100644 --- a/runtime/tests/core/core_test.cc +++ b/runtime/tests/core/core_test.cc @@ -4,12 +4,12 @@ #include #include -#include "smithy/core/base64.h" -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/error.h" -#include "smithy/core/outcome.h" -#include "smithy/core/text.h" +#include "opal/core/base64.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/error.h" +#include "opal/core/outcome.h" +#include "opal/core/text.h" namespace opal { namespace { diff --git a/runtime/tests/core/document_serde_test.cc b/runtime/tests/core/document_serde_test.cc index 0e90c8da..8d92b615 100644 --- a/runtime/tests/core/document_serde_test.cc +++ b/runtime/tests/core/document_serde_test.cc @@ -1,4 +1,4 @@ -#include "smithy/core/document_serde.h" +#include "opal/core/document_serde.h" #include @@ -7,7 +7,7 @@ #include #include -#include "smithy/core/uuid.h" +#include "opal/core/uuid.h" namespace opal { namespace { diff --git a/runtime/tests/core/exception_guard_test.cc b/runtime/tests/core/exception_guard_test.cc index 66ae6d19..3fd38fdd 100644 --- a/runtime/tests/core/exception_guard_test.cc +++ b/runtime/tests/core/exception_guard_test.cc @@ -1,4 +1,4 @@ -#include "smithy/core/exception_guard.h" +#include "opal/core/exception_guard.h" #include #include diff --git a/runtime/tests/core/hash_test.cc b/runtime/tests/core/hash_test.cc index b3726e1f..2952f706 100644 --- a/runtime/tests/core/hash_test.cc +++ b/runtime/tests/core/hash_test.cc @@ -1,9 +1,9 @@ -// smithy/core/hash.h: HashCombine's mixing, HashValue's container dispatch, +// opal/core/hash.h: HashCombine's mixing, HashValue's container dispatch, // and the std::hash specializations for the runtime types generated members // use (Blob, Timestamp, Unit) — the plumbing that lets generated types key // std::unordered_map/std::unordered_set (issue #49). -#include "smithy/core/hash.h" +#include "opal/core/hash.h" #include @@ -16,10 +16,10 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" +#include "opal/core/timestamp.h" namespace opal { namespace { diff --git a/runtime/tests/core/print_test.cc b/runtime/tests/core/print_test.cc index d03621d4..2238231d 100644 --- a/runtime/tests/core/print_test.cc +++ b/runtime/tests/core/print_test.cc @@ -1,11 +1,11 @@ -// smithy/core/print.h: DebugAppend's scalar/container rendering plus the +// opal/core/print.h: DebugAppend's scalar/container rendering plus the // AppendDebugTo members on the runtime types generated members use (Blob, // Timestamp, Document, Unit, Boxed) — the plumbing behind generated // DebugString()/operator<< (issue #85). Debug output is for humans: never // parse it or pin it across library versions (these pins ARE the versioned // definition, updated deliberately). -#include "smithy/core/print.h" +#include "opal/core/print.h" #include @@ -16,11 +16,11 @@ #include #include -#include "smithy/core/blob.h" -#include "smithy/core/boxed.h" -#include "smithy/core/document.h" -#include "smithy/core/outcome.h" -#include "smithy/core/timestamp.h" +#include "opal/core/blob.h" +#include "opal/core/boxed.h" +#include "opal/core/document.h" +#include "opal/core/outcome.h" +#include "opal/core/timestamp.h" namespace opal { namespace { diff --git a/runtime/tests/core/regex_test.cc b/runtime/tests/core/regex_test.cc index c18c1b0e..d505997c 100644 --- a/runtime/tests/core/regex_test.cc +++ b/runtime/tests/core/regex_test.cc @@ -1,4 +1,4 @@ -#include "smithy/core/regex.h" +#include "opal/core/regex.h" #include diff --git a/runtime/tests/core/timestamp_differential_test.cc b/runtime/tests/core/timestamp_differential_test.cc index 80cf15cb..2c8f6d72 100644 --- a/runtime/tests/core/timestamp_differential_test.cc +++ b/runtime/tests/core/timestamp_differential_test.cc @@ -11,7 +11,7 @@ #include #include -#include "smithy/core/timestamp.h" +#include "opal/core/timestamp.h" namespace opal { namespace { diff --git a/runtime/tests/core/timestamp_test.cc b/runtime/tests/core/timestamp_test.cc index 8b375ae9..26eefba8 100644 --- a/runtime/tests/core/timestamp_test.cc +++ b/runtime/tests/core/timestamp_test.cc @@ -1,4 +1,4 @@ -#include "smithy/core/timestamp.h" +#include "opal/core/timestamp.h" #include diff --git a/runtime/tests/core/uuid_test.cc b/runtime/tests/core/uuid_test.cc index 8bc8c7fe..3689d313 100644 --- a/runtime/tests/core/uuid_test.cc +++ b/runtime/tests/core/uuid_test.cc @@ -1,4 +1,4 @@ -#include "smithy/core/uuid.h" +#include "opal/core/uuid.h" #include diff --git a/runtime/tests/core/version_test.cc b/runtime/tests/core/version_test.cc index 06f5b80a..5e715c19 100644 --- a/runtime/tests/core/version_test.cc +++ b/runtime/tests/core/version_test.cc @@ -1,4 +1,4 @@ -#include "smithy/core/version.h" +#include "opal/core/version.h" #include diff --git a/runtime/tests/eventstream/async_event_stream_test.cc b/runtime/tests/eventstream/async_event_stream_test.cc index 7c885943..8d7c8ac7 100644 --- a/runtime/tests/eventstream/async_event_stream_test.cc +++ b/runtime/tests/eventstream/async_event_stream_test.cc @@ -6,7 +6,7 @@ // beast_websocket_test.cc; the registry's async delivery in // session_registry_test.cc. -#include "smithy/eventstream/async_event_stream.h" +#include "opal/eventstream/async_event_stream.h" #include @@ -23,11 +23,11 @@ #include #include -#include "smithy/eventstream/event_stream.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" -#include "smithy/testing/websocket_contract_test.h" +#include "opal/eventstream/event_stream.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" +#include "opal/testing/websocket_contract_test.h" namespace opal::eventstream { namespace { diff --git a/runtime/tests/eventstream/envelope_test.cc b/runtime/tests/eventstream/envelope_test.cc index 1d6b8525..27b66e56 100644 --- a/runtime/tests/eventstream/envelope_test.cc +++ b/runtime/tests/eventstream/envelope_test.cc @@ -5,14 +5,14 @@ // malformed envelope shape must surface as Error::Serialization, never as a // wrong envelope. -#include "smithy/eventstream/envelope.h" +#include "opal/eventstream/envelope.h" #include #include #include -#include "smithy/eventstream/frame.h" +#include "opal/eventstream/frame.h" namespace opal::eventstream { namespace { diff --git a/runtime/tests/eventstream/event_stream_test.cc b/runtime/tests/eventstream/event_stream_test.cc index e3da98b7..168bb1eb 100644 --- a/runtime/tests/eventstream/event_stream_test.cc +++ b/runtime/tests/eventstream/event_stream_test.cc @@ -8,7 +8,7 @@ // stream is gone, and the stream's destructor waits out handle operations // in flight before the borrow dies. -#include "smithy/eventstream/event_stream.h" +#include "opal/eventstream/event_stream.h" #include @@ -20,9 +20,9 @@ #include #include -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" namespace opal::eventstream { namespace { diff --git a/runtime/tests/eventstream/frame_test.cc b/runtime/tests/eventstream/frame_test.cc index 4b8dcc50..b3ad8a0b 100644 --- a/runtime/tests/eventstream/frame_test.cc +++ b/runtime/tests/eventstream/frame_test.cc @@ -4,7 +4,7 @@ // contract, and the hostile bank — every corrupted byte must surface as an // error, never as a wrong message. -#include "smithy/eventstream/frame.h" +#include "opal/eventstream/frame.h" #include diff --git a/runtime/tests/eventstream/json_frame_test.cc b/runtime/tests/eventstream/json_frame_test.cc index 962230ff..40da0bd2 100644 --- a/runtime/tests/eventstream/json_frame_test.cc +++ b/runtime/tests/eventstream/json_frame_test.cc @@ -5,14 +5,14 @@ // fail-closed bank — every malformed envelope must surface as // Error::Serialization, never as a half-understood message. -#include "smithy/eventstream/json_frame.h" +#include "opal/eventstream/json_frame.h" #include #include -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/frame.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/frame.h" namespace opal::eventstream { namespace { diff --git a/runtime/tests/eventstream/jsonrpc_frame_test.cc b/runtime/tests/eventstream/jsonrpc_frame_test.cc index d77503de..c7056a25 100644 --- a/runtime/tests/eventstream/jsonrpc_frame_test.cc +++ b/runtime/tests/eventstream/jsonrpc_frame_test.cc @@ -6,15 +6,15 @@ // kViolation carrying its reserved code, never as a half-understood // message. -#include "smithy/eventstream/jsonrpc_frame.h" +#include "opal/eventstream/jsonrpc_frame.h" #include #include -#include "smithy/core/document.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/frame.h" +#include "opal/core/document.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/frame.h" namespace opal::eventstream { namespace { diff --git a/runtime/tests/eventstream/jsonrpc_stream_socket_test.cc b/runtime/tests/eventstream/jsonrpc_stream_socket_test.cc index cd778a75..de581786 100644 --- a/runtime/tests/eventstream/jsonrpc_stream_socket_test.cc +++ b/runtime/tests/eventstream/jsonrpc_stream_socket_test.cc @@ -8,7 +8,7 @@ // mis-framed inbound traffic, and the server end answers the reserved-code // terminal for the opening id before its close. -#include "smithy/eventstream/jsonrpc_stream_socket.h" +#include "opal/eventstream/jsonrpc_stream_socket.h" #include @@ -19,11 +19,11 @@ #include #include -#include "smithy/core/document.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket_pair.h" -#include "smithy/testing/websocket_contract_test.h" +#include "opal/core/document.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket_pair.h" +#include "opal/testing/websocket_contract_test.h" namespace opal::eventstream { namespace { diff --git a/runtime/tests/http/beast_client_test.cc b/runtime/tests/http/beast_client_test.cc index da983cab..d329c8d1 100644 --- a/runtime/tests/http/beast_client_test.cc +++ b/runtime/tests/http/beast_client_test.cc @@ -26,14 +26,14 @@ #include #include -#include "smithy/client/config.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/message.h" -#include "smithy/http/socket_transport.h" -#include "smithy/http/trace_context.h" -#include "smithy/http/transport.h" -#include "smithy/testing/connection_event_recorder.h" -#include "smithy/testing/tls_test_identity.h" +#include "opal/client/config.h" +#include "opal/http/beast_transport.h" +#include "opal/http/message.h" +#include "opal/http/socket_transport.h" +#include "opal/http/trace_context.h" +#include "opal/http/transport.h" +#include "opal/testing/connection_event_recorder.h" +#include "opal/testing/tls_test_identity.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/beast_transport_test.cc b/runtime/tests/http/beast_transport_test.cc index 8ffbd18f..95171298 100644 --- a/runtime/tests/http/beast_transport_test.cc +++ b/runtime/tests/http/beast_transport_test.cc @@ -1,4 +1,4 @@ -#include "smithy/http/beast_transport.h" +#include "opal/http/beast_transport.h" #include #include @@ -19,10 +19,10 @@ #include #include -#include "smithy/http/socket_transport.h" -#include "smithy/server/metrics.h" -#include "smithy/server/middleware.h" -#include "smithy/testing/connection_event_recorder.h" +#include "opal/http/socket_transport.h" +#include "opal/server/metrics.h" +#include "opal/server/middleware.h" +#include "opal/testing/connection_event_recorder.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/beast_websocket_test.cc b/runtime/tests/http/beast_websocket_test.cc index c1866b58..a8f7cd1a 100644 --- a/runtime/tests/http/beast_websocket_test.cc +++ b/runtime/tests/http/beast_websocket_test.cc @@ -29,14 +29,14 @@ #include #include -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/envelope.h" -#include "smithy/eventstream/json_frame.h" -#include "smithy/http/beast_transport.h" -#include "smithy/http/websocket.h" -#include "smithy/testing/connection_event_recorder.h" -#include "smithy/testing/tls_test_identity.h" -#include "smithy/testing/websocket_contract_test.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/envelope.h" +#include "opal/eventstream/json_frame.h" +#include "opal/http/beast_transport.h" +#include "opal/http/websocket.h" +#include "opal/testing/connection_event_recorder.h" +#include "opal/testing/tls_test_identity.h" +#include "opal/testing/websocket_contract_test.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/forwarded_test.cc b/runtime/tests/http/forwarded_test.cc index 9aed4826..86108f6e 100644 --- a/runtime/tests/http/forwarded_test.cc +++ b/runtime/tests/http/forwarded_test.cc @@ -3,7 +3,7 @@ // security edges — every way an attacker-authored header must lose to the // one fact a client cannot forge. -#include "smithy/http/forwarded.h" +#include "opal/http/forwarded.h" #include diff --git a/runtime/tests/http/http1_hostile_test.cc b/runtime/tests/http/http1_hostile_test.cc index 657601d8..4cdac4f6 100644 --- a/runtime/tests/http/http1_hostile_test.cc +++ b/runtime/tests/http/http1_hostile_test.cc @@ -12,7 +12,7 @@ #include #include -#include "smithy/http/http1.h" +#include "opal/http/http1.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/http_test.cc b/runtime/tests/http/http_test.cc index d5d5b5d8..ac2c10b6 100644 --- a/runtime/tests/http/http_test.cc +++ b/runtime/tests/http/http_test.cc @@ -1,9 +1,9 @@ #include -#include "smithy/http/headers.h" -#include "smithy/http/loopback.h" -#include "smithy/http/message.h" -#include "smithy/http/uri.h" +#include "opal/http/headers.h" +#include "opal/http/loopback.h" +#include "opal/http/message.h" +#include "opal/http/uri.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/server_dispatch_test.cc b/runtime/tests/http/server_dispatch_test.cc index 284c1575..772e21b6 100644 --- a/runtime/tests/http/server_dispatch_test.cc +++ b/runtime/tests/http/server_dispatch_test.cc @@ -1,13 +1,13 @@ -#include "smithy/http/server_dispatch.h" +#include "opal/http/server_dispatch.h" #include #include #include -#include "smithy/http/message.h" -#include "smithy/http/trace_context.h" -#include "smithy/http/transport.h" +#include "opal/http/message.h" +#include "opal/http/trace_context.h" +#include "opal/http/transport.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/socket_transport_hostile_test.cc b/runtime/tests/http/socket_transport_hostile_test.cc index 2edd2915..ec376c34 100644 --- a/runtime/tests/http/socket_transport_hostile_test.cc +++ b/runtime/tests/http/socket_transport_hostile_test.cc @@ -14,7 +14,7 @@ #include #include -#include "smithy/http/socket_transport.h" +#include "opal/http/socket_transport.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/socket_transport_test.cc b/runtime/tests/http/socket_transport_test.cc index 4de5f902..a1bdac65 100644 --- a/runtime/tests/http/socket_transport_test.cc +++ b/runtime/tests/http/socket_transport_test.cc @@ -1,4 +1,4 @@ -#include "smithy/http/socket_transport.h" +#include "opal/http/socket_transport.h" #include #include @@ -14,7 +14,7 @@ #include #include -#include "smithy/http/trace_context.h" +#include "opal/http/trace_context.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/trace_context_test.cc b/runtime/tests/http/trace_context_test.cc index fa9477ba..be115a60 100644 --- a/runtime/tests/http/trace_context_test.cc +++ b/runtime/tests/http/trace_context_test.cc @@ -1,4 +1,4 @@ -#include "smithy/http/trace_context.h" +#include "opal/http/trace_context.h" #include diff --git a/runtime/tests/http/uri_property_test.cc b/runtime/tests/http/uri_property_test.cc index 0eb3900a..b366cd82 100644 --- a/runtime/tests/http/uri_property_test.cc +++ b/runtime/tests/http/uri_property_test.cc @@ -6,7 +6,7 @@ #include #include -#include "smithy/http/uri.h" +#include "opal/http/uri.h" namespace opal::http { namespace { diff --git a/runtime/tests/http/websocket_pair_test.cc b/runtime/tests/http/websocket_pair_test.cc index 934c422a..c3a0c045 100644 --- a/runtime/tests/http/websocket_pair_test.cc +++ b/runtime/tests/http/websocket_pair_test.cc @@ -5,7 +5,7 @@ // unblocking blocked calls from another thread — plus the bounded receive // (Error::Timeout on a deadline that expires, on a session that survives it). -#include "smithy/http/websocket_pair.h" +#include "opal/http/websocket_pair.h" #include @@ -18,8 +18,8 @@ #include #include -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" namespace opal::http { namespace { diff --git a/runtime/tests/json/json_conformance_test.cc b/runtime/tests/json/json_conformance_test.cc index 12386e91..62853622 100644 --- a/runtime/tests/json/json_conformance_test.cc +++ b/runtime/tests/json/json_conformance_test.cc @@ -17,7 +17,7 @@ #include #include -#include "smithy/json/json.h" +#include "opal/json/json.h" #include "tools/cpp/runfiles/runfiles.h" namespace opal::json { diff --git a/runtime/tests/json/json_property_test.cc b/runtime/tests/json/json_property_test.cc index b214dad6..5bc41996 100644 --- a/runtime/tests/json/json_property_test.cc +++ b/runtime/tests/json/json_property_test.cc @@ -4,7 +4,7 @@ #include -#include "smithy/json/json.h" +#include "opal/json/json.h" #include "tests/testing/random_document.h" namespace opal::json { diff --git a/runtime/tests/json/json_test.cc b/runtime/tests/json/json_test.cc index 0e2dd98b..49a0d155 100644 --- a/runtime/tests/json/json_test.cc +++ b/runtime/tests/json/json_test.cc @@ -1,4 +1,4 @@ -#include "smithy/json/json.h" +#include "opal/json/json.h" #include diff --git a/runtime/tests/server/access_log_test.cc b/runtime/tests/server/access_log_test.cc index 8aa48c68..650c68cd 100644 --- a/runtime/tests/server/access_log_test.cc +++ b/runtime/tests/server/access_log_test.cc @@ -7,7 +7,7 @@ // collector is a strict parser: a line the formatter *thinks* is JSON but a // parser rejects is a log entry that silently never arrives. -#include "smithy/server/access_log.h" +#include "opal/server/access_log.h" #include @@ -17,10 +17,10 @@ #include #include "nlohmann/json.hpp" -#include "smithy/http/forwarded.h" -#include "smithy/http/message.h" -#include "smithy/server/metrics.h" -#include "smithy/server/middleware.h" +#include "opal/http/forwarded.h" +#include "opal/http/message.h" +#include "opal/server/metrics.h" +#include "opal/server/middleware.h" namespace opal::server { namespace { diff --git a/runtime/tests/server/metrics_test.cc b/runtime/tests/server/metrics_test.cc index 26506442..7368c4d3 100644 --- a/runtime/tests/server/metrics_test.cc +++ b/runtime/tests/server/metrics_test.cc @@ -7,7 +7,7 @@ // scrape Prometheus silently rejects, hours later, on a dashboard nobody is // watching yet. -#include "smithy/server/metrics.h" +#include "opal/server/metrics.h" #include @@ -21,7 +21,7 @@ #include #include -#include "smithy/server/middleware.h" +#include "opal/server/middleware.h" namespace opal::server { namespace { diff --git a/runtime/tests/server/middleware_test.cc b/runtime/tests/server/middleware_test.cc index 0cc0c772..21acb543 100644 --- a/runtime/tests/server/middleware_test.cc +++ b/runtime/tests/server/middleware_test.cc @@ -1,4 +1,4 @@ -#include "smithy/server/middleware.h" +#include "opal/server/middleware.h" #include @@ -9,8 +9,8 @@ #include #include -#include "smithy/http/loopback.h" -#include "smithy/http/trace_context.h" +#include "opal/http/loopback.h" +#include "opal/http/trace_context.h" namespace opal::server { namespace { diff --git a/runtime/tests/server/origin_gate_test.cc b/runtime/tests/server/origin_gate_test.cc index f03a9df1..9f5a1bf1 100644 --- a/runtime/tests/server/origin_gate_test.cc +++ b/runtime/tests/server/origin_gate_test.cc @@ -4,14 +4,14 @@ // malformed or unlisted is a 403 — including "null" unless literally // allowlisted. -#include "smithy/server/origin_gate.h" +#include "opal/server/origin_gate.h" #include #include #include -#include "smithy/http/message.h" +#include "opal/http/message.h" namespace opal::server { namespace { diff --git a/runtime/tests/server/router_test.cc b/runtime/tests/server/router_test.cc index 19f3b1b5..deedbcdd 100644 --- a/runtime/tests/server/router_test.cc +++ b/runtime/tests/server/router_test.cc @@ -1,4 +1,4 @@ -#include "smithy/server/router.h" +#include "opal/server/router.h" #include diff --git a/runtime/tests/server/session_registry_test.cc b/runtime/tests/server/session_registry_test.cc index aa65acd9..f69cb583 100644 --- a/runtime/tests/server/session_registry_test.cc +++ b/runtime/tests/server/session_registry_test.cc @@ -14,7 +14,7 @@ // only the bounded post-detach tail, Remove cancels a pending expiry, and // Drain/destructor expire ghosts immediately. -#include "smithy/server/session_registry.h" +#include "opal/server/session_registry.h" #include @@ -30,11 +30,11 @@ #include #include -#include "smithy/eventstream/async_event_stream.h" -#include "smithy/eventstream/event_stream.h" -#include "smithy/eventstream/frame.h" -#include "smithy/http/websocket.h" -#include "smithy/http/websocket_pair.h" +#include "opal/eventstream/async_event_stream.h" +#include "opal/eventstream/event_stream.h" +#include "opal/eventstream/frame.h" +#include "opal/http/websocket.h" +#include "opal/http/websocket_pair.h" namespace opal::server { namespace { diff --git a/runtime/tests/server/websocket_router_test.cc b/runtime/tests/server/websocket_router_test.cc index bc53511e..44132804 100644 --- a/runtime/tests/server/websocket_router_test.cc +++ b/runtime/tests/server/websocket_router_test.cc @@ -7,7 +7,7 @@ // seam-agnostic Gate, the one-seam mixing refusals, and the wrong-seam // dispatcher degrading to a close instead of a throw. -#include "smithy/server/websocket_router.h" +#include "opal/server/websocket_router.h" #include @@ -19,7 +19,7 @@ #include #include -#include "smithy/http/websocket_pair.h" +#include "opal/http/websocket_pair.h" namespace opal::server { namespace { diff --git a/runtime/tests/testing/protocol_test_support_test.cc b/runtime/tests/testing/protocol_test_support_test.cc index 36f3c33a..37a636f4 100644 --- a/runtime/tests/testing/protocol_test_support_test.cc +++ b/runtime/tests/testing/protocol_test_support_test.cc @@ -7,7 +7,7 @@ #include #include -#include "smithy/testing/protocol_test.h" +#include "opal/testing/protocol_test.h" namespace opal::testing { namespace { diff --git a/runtime/tests/testing/random_document.h b/runtime/tests/testing/random_document.h index e7e01139..9b0aa921 100644 --- a/runtime/tests/testing/random_document.h +++ b/runtime/tests/testing/random_document.h @@ -1,8 +1,8 @@ // Test-only generator of random Document values for property-based round-trip // tests. Deterministically seeded by the caller so failures reproduce. -#ifndef SMITHY_TESTS_TESTING_RANDOM_DOCUMENT_H_ -#define SMITHY_TESTS_TESTING_RANDOM_DOCUMENT_H_ +#ifndef OPAL_TESTS_TESTING_RANDOM_DOCUMENT_H_ +#define OPAL_TESTS_TESTING_RANDOM_DOCUMENT_H_ #include #include @@ -10,7 +10,7 @@ #include #include -#include "smithy/core/document.h" +#include "opal/core/document.h" namespace opal::testing { @@ -121,4 +121,4 @@ class RandomDocumentGenerator { } // namespace opal::testing -#endif // SMITHY_TESTS_TESTING_RANDOM_DOCUMENT_H_ +#endif // OPAL_TESTS_TESTING_RANDOM_DOCUMENT_H_ diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index d2db8ed6..c4470745 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -13,7 +13,7 @@ sh_test( "//:CHANGELOG.md", "//:docs/versioning.md", "//codegen:gradle.properties", - "//runtime:include/smithy/client/config.h", + "//runtime:include/opal/client/config.h", "//runtime:src/core/version.cc", "//runtime:tests/core/version_test.cc", ], diff --git a/tools/release.sh b/tools/release.sh index 0bab6820..b86a5d38 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -14,7 +14,7 @@ set -euo pipefail VERSION_CC=runtime/src/core/version.cc VERSION_TEST=runtime/tests/core/version_test.cc -CONFIG_H=runtime/include/smithy/client/config.h +CONFIG_H=runtime/include/opal/client/config.h GRADLE_PROPERTIES=codegen/gradle.properties CHANGELOG=CHANGELOG.md VERSIONING_DOC=docs/versioning.md diff --git a/tools/release_test.sh b/tools/release_test.sh index 512105ab..d8d619ce 100755 --- a/tools/release_test.sh +++ b/tools/release_test.sh @@ -70,11 +70,11 @@ fi release_abs="$PWD/$RELEASE" work="${TEST_TMPDIR:-$(mktemp -d)}/bump" mkdir -p "$work/runtime/src/core" "$work/runtime/tests/core" \ - "$work/runtime/include/smithy/client" "$work/codegen" "$work/docs" + "$work/runtime/include/opal/client" "$work/codegen" "$work/docs" cp CHANGELOG.md "$work/" cp runtime/src/core/version.cc "$work/runtime/src/core/" cp runtime/tests/core/version_test.cc "$work/runtime/tests/core/" -cp runtime/include/smithy/client/config.h "$work/runtime/include/smithy/client/" +cp runtime/include/opal/client/config.h "$work/runtime/include/opal/client/" cp codegen/gradle.properties "$work/codegen/" cp docs/versioning.md "$work/docs/" cd "$work" @@ -94,7 +94,7 @@ else fail "bump: version.cc not rewritten" grep -q 'EXPECT_EQ(Version(), "9.9.9-dev");' runtime/tests/core/version_test.cc || fail "bump: version_test.cc not rewritten" - grep -q 'smithy-cpp/9.9.9-dev' runtime/include/smithy/client/config.h || + grep -q 'smithy-cpp/9.9.9-dev' runtime/include/opal/client/config.h || fail "bump: config.h not rewritten" grep -qx 'version=9.9.9-dev' codegen/gradle.properties || fail "bump: gradle.properties not rewritten" From 2907f49e12b35616ba2c0c5f1b1d95d1f7930135 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 9 Sep 2026 11:34:19 +0000 Subject: [PATCH 2/2] Match the docs' crash-line examples and CHANGELOG wording to the opal prefix The two Fatal examples in the docs still read smithy: after the runtime moved to opal:; the CHANGELOG entry read as if the macro prefix were still SMITHY_*, and the surface-1 entry still said the include root was yet to move. --- CHANGELOG.md | 8 ++++---- docs/adr/0009-fail-fast-contract-violations.md | 2 +- docs/generated-types.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe86f486..a98ff0ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,8 @@ policy in [docs/versioning.md](docs/versioning.md). the second of three surfaces). `#include "smithy/http/transport.h"` is now `#include "opal/http/transport.h"`, for every runtime header and for the test helpers under `opal/testing/`. The include guards - (`OPAL_HTTP_TRANSPORT_H_`), the `SMITHY_*` macro prefix - (`OPAL_E2E_HAVE_BEAST`) and the `opal:` prefix on the runtime's own + (`OPAL_HTTP_TRANSPORT_H_`), the `OPAL_*` macro prefix, formerly `SMITHY_*` + (`OPAL_E2E_HAVE_BEAST`), and the `opal:` prefix on the runtime's own stderr/clog lines follow it, and generated code includes the new paths. Migration: `#include "smithy/` → `#include "opal/` over your tree. A header path derived from your own model's Smithy namespace @@ -43,8 +43,8 @@ policy in [docs/versioning.md](docs/versioning.md). `smithy::protocoltests::`, and the top-level runtime types such as `smithy::Outcome`. Smithy namespaces in `.smithy` files and the `smithy_cpp_*_library` rules name the model and are unchanged. The - include root (`smithy/http/transport.h`) and the Bazel module - (`@smithy_cpp`) are unchanged here and move in the two PRs that follow. + include root moved in the entry above; the Bazel module (`@smithy_cpp`) + moves in the PR that follows. ### Added diff --git a/docs/adr/0009-fail-fast-contract-violations.md b/docs/adr/0009-fail-fast-contract-violations.md index 30ca8f47..8b1514cb 100644 --- a/docs/adr/0009-fail-fast-contract-violations.md +++ b/docs/adr/0009-fail-fast-contract-violations.md @@ -36,7 +36,7 @@ has declared unrecoverable. ## Consequences -- Crash lines carry the diagnosis (`smithy: OrderStatus::as_ready(): engaged member is +- Crash lines carry the diagnosis (`opal: OrderStatus::as_ready(): engaged member is pending`), and death tests pin the exact formats. - **Server posture shift:** before, a handler's wrong-side deref threw and the dispatch guard contained it into a 500 response; now the same bug kills the process. This is diff --git a/docs/generated-types.md b/docs/generated-types.md index a81467ce..114c43fd 100644 --- a/docs/generated-types.md +++ b/docs/generated-types.md @@ -127,7 +127,7 @@ target types are fine. Calling `as_x()` while a different member (or none) is engaged is a contract violation: it terminates the process with the union, requested, and engaged member named (e.g. -`smithy: MilkOption::as_dairy(): engaged member is oat`) — never a context-free +`opal: MilkOption::as_dairy(): engaged member is oat`) — never a context-free `std::bad_variant_access`. For access that can't die, branch on `is_x()`, use `as_x_or_null()` (`if (const auto* dairy = milk.as_dairy_or_null()) …`), or `visit()` with a visitor that covers every member plus `std::monostate` for the empty state —