Skip to content

Commit 32a8b78

Browse files
authored
pr feedback
1 parent 005a22a commit 32a8b78

File tree

6 files changed

+20
-4
lines changed

6 files changed

+20
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ members = [
2020
"sdk/template/azure_template_core",
2121
"sdk/template/azure_template",
2222
"sdk/storage/azure_storage_common",
23-
"sdk/storage/azure_storage_blob", "sdk/cosmos/cosmosclient",
23+
"sdk/storage/azure_storage_blob",
24+
"sdk/cosmos/cosmosclient",
2425
]
2526
exclude = [
2627
"eng/scripts",

sdk/cosmos/azure_data_cosmos/Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ workspace = true
3737

3838
[features]
3939
default = ["hmac_rust"]
40-
_internal_c = [] # Internal feature used to expose additional types/functions as needed to build libcosmosclient.
40+
c = [] # Internal feature used to expose additional types/functions as needed to build libcosmosclient.
4141
key_auth = [] # Enables support for key-based authentication (Primary Keys and Resource Tokens)
4242
preview_query_engine = ["serde_json/raw_value"] # Enables support for the PREVIEW external query engine
4343
hmac_rust = ["azure_core/hmac_rust"]
4444
hmac_openssl = ["azure_core/hmac_openssl"]
4545

4646
[package.metadata.docs.rs]
47-
features = ["key_auth"]
47+
features = [
48+
"key_auth",
49+
"preview_query_engine",
50+
"hmac_rust",
51+
"hmac_openssl",
52+
]

sdk/cosmos/cosmosclient/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
name = "cosmosclient"
3+
publish = false
34
description = "C library wrapping the Azure CosmosDB SDK for Rust"
45
version = "0.27.0"
56
authors.workspace = true
@@ -12,7 +13,7 @@ rust-version.workspace = true
1213
crate-type = ["cdylib", "staticlib"]
1314

1415
[dependencies]
15-
azure_data_cosmos = { path = "../azure_data_cosmos", features = ["_internal_c"] }
16+
azure_data_cosmos = { path = "../azure_data_cosmos", features = ["c"] }
1617

1718
[build-dependencies]
1819
cbindgen = "0.29.0"

sdk/cosmos/cosmosclient/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
fn main() {
25
let build_id = format!(
36
"$Id: {}, Version: {}, Commit: {}, Branch: {}, Build ID: {}, Build Number: {}, Timestamp: {}$",

sdk/cosmos/cosmosclient/c_tests/version.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
#include <stdio.h>
25
#include <string.h>
36
#include "../include/cosmosclient.h"

sdk/cosmos/cosmosclient/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
use std::ffi::{c_char, CStr, CString};
25

36
#[no_mangle] // Necessary to prevent the compiler from stripping it when optimizing

0 commit comments

Comments
 (0)