Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
c9130f8f
Commit
c9130f8f
authored
Feb 05, 2025
by
J Wyman
Committed by
GitHub
Feb 05, 2025
Browse files
ci: Add Copyright Verification Scripts w/ Automation (#110)
parent
9322edef
Changes
99
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
442 additions
and
241 deletions
+442
-241
runtime/rust/python-wheel/pyproject.toml
runtime/rust/python-wheel/pyproject.toml
+16
-0
runtime/rust/python-wheel/python/triton_distributed_rs/__init__.py
...ust/python-wheel/python/triton_distributed_rs/__init__.py
+16
-0
runtime/rust/python-wheel/rust/engine.rs
runtime/rust/python-wheel/rust/engine.rs
+15
-0
runtime/rust/python-wheel/rust/lib.rs
runtime/rust/python-wheel/rust/lib.rs
+15
-0
runtime/rust/src/component.rs
runtime/rust/src/component.rs
+14
-15
runtime/rust/src/component/client.rs
runtime/rust/src/component/client.rs
+14
-15
runtime/rust/src/component/endpoint.rs
runtime/rust/src/component/endpoint.rs
+14
-15
runtime/rust/src/component/registry.rs
runtime/rust/src/component/registry.rs
+14
-15
runtime/rust/src/component/service.rs
runtime/rust/src/component/service.rs
+118
-15
runtime/rust/src/config.rs
runtime/rust/src/config.rs
+14
-15
runtime/rust/src/discovery.rs
runtime/rust/src/discovery.rs
+14
-15
runtime/rust/src/distributed.rs
runtime/rust/src/distributed.rs
+14
-15
runtime/rust/src/engine.rs
runtime/rust/src/engine.rs
+14
-15
runtime/rust/src/lib.rs
runtime/rust/src/lib.rs
+14
-15
runtime/rust/src/pipeline.rs
runtime/rust/src/pipeline.rs
+66
-15
runtime/rust/src/pipeline/context.rs
runtime/rust/src/pipeline/context.rs
+14
-16
runtime/rust/src/pipeline/error.rs
runtime/rust/src/pipeline/error.rs
+14
-15
runtime/rust/src/pipeline/network.rs
runtime/rust/src/pipeline/network.rs
+14
-15
runtime/rust/src/pipeline/network/codec.rs
runtime/rust/src/pipeline/network/codec.rs
+14
-15
runtime/rust/src/pipeline/network/codec/two_part.rs
runtime/rust/src/pipeline/network/codec/two_part.rs
+14
-15
No files found.
runtime/rust/python-wheel/pyproject.toml
View file @
c9130f8f
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[project]
[project]
name
=
"triton-distributed-rs"
name
=
"triton-distributed-rs"
version
=
"0.1.1"
version
=
"0.1.1"
...
...
runtime/rust/python-wheel/python/triton_distributed_rs/__init__.py
View file @
c9130f8f
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
asyncio
import
asyncio
from
functools
import
wraps
from
functools
import
wraps
from
typing
import
Any
,
AsyncGenerator
,
Callable
,
Type
from
typing
import
Any
,
AsyncGenerator
,
Callable
,
Type
...
...
runtime/rust/python-wheel/rust/engine.rs
View file @
c9130f8f
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pub
use
serde
::{
Deserialize
,
Serialize
};
pub
use
serde
::{
Deserialize
,
Serialize
};
pub
use
triton_distributed
::{
pub
use
triton_distributed
::{
error
,
error
,
...
...
runtime/rust/python-wheel/rust/lib.rs
View file @
c9130f8f
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use
futures
::
StreamExt
;
use
futures
::
StreamExt
;
use
once_cell
::
sync
::
OnceCell
;
use
once_cell
::
sync
::
OnceCell
;
use
pyo3
::
exceptions
::
PyStopAsyncIteration
;
use
pyo3
::
exceptions
::
PyStopAsyncIteration
;
...
...
runtime/rust/src/component.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
//! The [Component] module defines the top-level API for building distributed applications.
//! The [Component] module defines the top-level API for building distributed applications.
//!
//!
...
...
runtime/rust/src/component/client.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
use
crate
::
pipeline
::{
use
crate
::
pipeline
::{
network
::
egress
::
push
::{
AddressedPushRouter
,
AddressedRequest
,
PushRouter
},
network
::
egress
::
push
::{
AddressedPushRouter
,
AddressedRequest
,
PushRouter
},
...
...
runtime/rust/src/component/endpoint.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
use
derive_getters
::
Dissolve
;
use
derive_getters
::
Dissolve
;
...
...
runtime/rust/src/component/registry.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
use
super
::{
Component
,
Registry
,
Result
};
use
super
::{
Component
,
Registry
,
Result
};
use
async_once_cell
::
OnceCell
;
use
async_once_cell
::
OnceCell
;
...
...
runtime/rust/src/component/service.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use
derive_getters
::
Dissolve
;
use
derive_getters
::
Dissolve
;
...
...
runtime/rust/src/config.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
use
super
::
Result
;
use
super
::
Result
;
use
derive_builder
::
Builder
;
use
derive_builder
::
Builder
;
...
...
runtime/rust/src/discovery.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
use
crate
::{
transports
::
etcd
,
Result
};
use
crate
::{
transports
::
etcd
,
Result
};
...
...
runtime/rust/src/distributed.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
pub
use
crate
::
component
::
Component
;
pub
use
crate
::
component
::
Component
;
use
crate
::{
use
crate
::{
...
...
runtime/rust/src/engine.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
use
std
::{
fmt
::
Debug
,
future
::
Future
,
pin
::
Pin
,
sync
::
Arc
};
use
std
::{
fmt
::
Debug
,
future
::
Future
,
pin
::
Pin
,
sync
::
Arc
};
...
...
runtime/rust/src/lib.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
//! Triton
//! Triton
...
...
runtime/rust/src/pipeline.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/// In a Pipeline, the [`AsyncEngine`] is constrained to take a [`Context`] as input and return
/// In a Pipeline, the [`AsyncEngine`] is constrained to take a [`Context`] as input and return
/// a [`super::engine::ResponseStream`] as output.
/// a [`super::engine::ResponseStream`] as output.
...
...
runtime/rust/src/pipeline/context.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
//! Context Module
//! Context Module
//!
//!
//! There are two context object defined in this module:
//! There are two context object defined in this module:
...
...
runtime/rust/src/pipeline/error.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
//! Pipeline Error
//! Pipeline Error
//
//
...
...
runtime/rust/src/pipeline/network.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
//! TODO - we need to reconcile what is in this crate with distributed::transports
//! TODO - we need to reconcile what is in this crate with distributed::transports
...
...
runtime/rust/src/pipeline/network/codec.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
//! Codec Module
//! Codec Module
//!
//!
...
...
runtime/rust/src/pipeline/network/codec/two_part.rs
View file @
c9130f8f
/*
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright 2024-2025 NVIDIA CORPORATION & AFFILIATES
// SPDX-License-Identifier: Apache-2.0
*
//
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
// Licensed under the Apache License, Version 2.0 (the "License");
* use this file except in compliance with the License. You may obtain a copy of
// you may not use this file except in compliance with the License.
* the License at
// You may obtain a copy of the License at
*
//
* http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
*
//
* Unless required by applicable law or agreed to in writing, software
// Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations under
// See the License for the specific language governing permissions and
* the License.
// limitations under the License.
*/
use
bytes
::{
Buf
,
BufMut
,
Bytes
,
BytesMut
};
use
bytes
::{
Buf
,
BufMut
,
Bytes
,
BytesMut
};
use
tokio_util
::
codec
::{
Decoder
,
Encoder
};
use
tokio_util
::
codec
::{
Decoder
,
Encoder
};
...
...
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment