@@ -228,28 +228,28 @@ mod tls_config {
228228 //! ↳Tls (wrapper over TCP stream which adds encryption)
229229
230230 use std:: io;
231- #[ cfg( feature = "cloud" ) ]
231+ #[ cfg( feature = "unstable- cloud" ) ]
232232 use std:: sync:: Arc ;
233233
234- #[ cfg( feature = "cloud" ) ]
234+ #[ cfg( feature = "unstable- cloud" ) ]
235235 use tracing:: warn;
236- #[ cfg( feature = "cloud" ) ]
236+ #[ cfg( feature = "unstable- cloud" ) ]
237237 use uuid:: Uuid ;
238238
239239 use crate :: client:: session:: TlsContext ;
240- #[ cfg( feature = "cloud" ) ]
240+ #[ cfg( feature = "unstable- cloud" ) ]
241241 use crate :: cloud:: CloudConfig ;
242- #[ cfg( feature = "cloud" ) ]
242+ #[ cfg( feature = "unstable- cloud" ) ]
243243 use crate :: cluster:: metadata:: PeerEndpoint ;
244244 use crate :: cluster:: metadata:: UntranslatedEndpoint ;
245- #[ cfg( feature = "cloud" ) ]
245+ #[ cfg( feature = "unstable- cloud" ) ]
246246 use crate :: cluster:: node:: ResolvedContactPoint ;
247247
248248 /// Abstraction capable of producing [TlsConfig] for connections on-demand.
249249 #[ derive( Clone ) ] // Cheaply clonable (reference-counted)
250250 pub ( crate ) enum TlsProvider {
251251 GlobalContext ( TlsContext ) ,
252- #[ cfg( feature = "cloud" ) ]
252+ #[ cfg( feature = "unstable- cloud" ) ]
253253 ScyllaCloud ( Arc < CloudConfig > ) ,
254254 }
255255
@@ -260,7 +260,7 @@ mod tls_config {
260260 }
261261
262262 /// Used in the cloud case.
263- #[ cfg( feature = "cloud" ) ]
263+ #[ cfg( feature = "unstable- cloud" ) ]
264264 pub ( crate ) fn new_cloud ( cloud_config : Arc < CloudConfig > ) -> Self {
265265 Self :: ScyllaCloud ( cloud_config)
266266 }
@@ -276,7 +276,7 @@ mod tls_config {
276276 TlsProvider :: GlobalContext ( context) => {
277277 Some ( TlsConfig :: new_with_global_context ( context. clone ( ) ) )
278278 }
279- #[ cfg( feature = "cloud" ) ]
279+ #[ cfg( feature = "unstable- cloud" ) ]
280280 TlsProvider :: ScyllaCloud ( cloud_config) => {
281281 let ( host_id, address, dc) = match * endpoint {
282282 UntranslatedEndpoint :: ContactPoint ( ResolvedContactPoint {
@@ -317,7 +317,7 @@ mod tls_config {
317317 #[ derive( Clone ) ]
318318 pub ( crate ) struct TlsConfig {
319319 context : TlsContext ,
320- #[ cfg( feature = "cloud" ) ]
320+ #[ cfg( feature = "unstable- cloud" ) ]
321321 sni : Option < String > ,
322322 }
323323
@@ -328,7 +328,7 @@ mod tls_config {
328328 #[ cfg( feature = "rustls-023" ) ]
329329 Rustls023 {
330330 connector : tokio_rustls:: TlsConnector ,
331- #[ cfg( feature = "cloud" ) ]
331+ #[ cfg( feature = "unstable- cloud" ) ]
332332 sni : Option < rustls:: pki_types:: ServerName < ' static > > ,
333333 } ,
334334 }
@@ -370,21 +370,21 @@ mod tls_config {
370370 pub ( crate ) fn new_with_global_context ( context : TlsContext ) -> Self {
371371 Self {
372372 context,
373- #[ cfg( feature = "cloud" ) ]
373+ #[ cfg( feature = "unstable- cloud" ) ]
374374 sni : None ,
375375 }
376376 }
377377
378378 /// Used in case of Serverless Cloud connections.
379- #[ cfg( feature = "cloud" ) ]
379+ #[ cfg( feature = "unstable- cloud" ) ]
380380 pub ( crate ) fn new_for_sni (
381381 context : TlsContext ,
382382 domain_name : & str ,
383383 host_id : Option < Uuid > ,
384384 ) -> Self {
385385 Self {
386386 context,
387- #[ cfg( feature = "cloud" ) ]
387+ #[ cfg( feature = "unstable- cloud" ) ]
388388 sni : Some ( if let Some ( host_id) = host_id {
389389 format ! ( "{}.{}" , host_id, domain_name)
390390 } else {
@@ -402,7 +402,7 @@ mod tls_config {
402402 TlsContext :: OpenSsl010 ( ref context) => {
403403 #[ allow( unused_mut) ]
404404 let mut ssl = openssl:: ssl:: Ssl :: new ( context) ?;
405- #[ cfg( feature = "cloud" ) ]
405+ #[ cfg( feature = "unstable- cloud" ) ]
406406 if let Some ( sni) = self . sni . as_ref ( ) {
407407 ssl. set_hostname ( sni) ?;
408408 }
@@ -411,7 +411,7 @@ mod tls_config {
411411 #[ cfg( feature = "rustls-023" ) ]
412412 TlsContext :: Rustls023 ( ref config) => {
413413 let connector = tokio_rustls:: TlsConnector :: from ( config. clone ( ) ) ;
414- #[ cfg( feature = "cloud" ) ]
414+ #[ cfg( feature = "unstable- cloud" ) ]
415415 let sni = self
416416 . sni
417417 . as_deref ( )
@@ -421,7 +421,7 @@ mod tls_config {
421421
422422 Ok ( Tls :: Rustls023 {
423423 connector,
424- #[ cfg( feature = "cloud" ) ]
424+ #[ cfg( feature = "unstable- cloud" ) ]
425425 sni,
426426 } )
427427 }
@@ -1619,14 +1619,14 @@ impl Connection {
16191619 #[ cfg( feature = "rustls-023" ) ]
16201620 tls_config:: Tls :: Rustls023 {
16211621 connector,
1622- #[ cfg( feature = "cloud" ) ]
1622+ #[ cfg( feature = "unstable- cloud" ) ]
16231623 sni,
16241624 } => {
16251625 use rustls:: pki_types:: ServerName ;
1626- #[ cfg( feature = "cloud" ) ]
1626+ #[ cfg( feature = "unstable- cloud" ) ]
16271627 let server_name =
16281628 sni. unwrap_or_else ( || ServerName :: IpAddress ( node_address. into ( ) ) ) ;
1629- #[ cfg( not( feature = "cloud" ) ) ]
1629+ #[ cfg( not( feature = "unstable- cloud" ) ) ]
16301630 let server_name = ServerName :: IpAddress ( node_address. into ( ) ) ;
16311631 let stream = connector. connect ( server_name, stream) . await ?;
16321632 return Ok ( spawn_router_and_get_handle (
0 commit comments