Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/modules/pkl-cli/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ The default output renderer for a module supports the following formats:
* `pcf`
* `plist`
* `properties`
* `textproto`
* `textproto` (deprecated in Pkl 0.33)
* `xml`
* `yaml`

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/pkl-gradle/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ The default output renderer for a module supports the following formats:
* `"pcf"`
* `"plist"`
* `"properties"`
* `"textproto"`
* `"textproto"` (deprecated in Pkl 0.33)
* `"xml"`
* `"yaml"`
====
Expand Down
4 changes: 2 additions & 2 deletions pkl-cli/src/main/kotlin/org/pkl/cli/CliEvaluatorOptions.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
* Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -51,7 +51,7 @@ data class CliEvaluatorOptions(
* - `"pcf"` (default)
* - `"plist"`
* - `"properties"`
* - `"textproto"`
* - `"textproto"` (deprecated in Pkl 0.33)
* - `"xml"`
* - `"yaml"`
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,7 @@ class BaseOptions : OptionGroup() {
private val defaults = CliBaseOptions()

private val output =
arrayOf(
"json",
"jsonnet",
"pcf",
"properties",
"plist",
"textproto",
"xml",
"yaml",
"pkl-binary",
)
arrayOf("json", "jsonnet", "pcf", "properties", "plist", "xml", "yaml", "pkl-binary")

val allowedModules: List<Pattern> by
option(
Expand Down
1 change: 1 addition & 0 deletions stdlib/base.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import "pkl:json"
import "pkl:jsonnet"
import "pkl:math"
import "pkl:pklbinary"
// noinspection Deprecated
import "pkl:protobuf"
import "pkl:xml"
import "pkl:yaml"
Expand Down
10 changes: 8 additions & 2 deletions stdlib/protobuf.pkl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
// Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -15,10 +15,16 @@
//===----------------------------------------------------------------------===//

/// A renderer for [Protocol Buffers](https://developers.google.com/protocol-buffers).
/// Note: This module is _experimental_ and not ready for production use.
///
/// WARNING:
/// This module is deprecated, and scheduled for removal without replacement.
/// For rendering into a protobuf wire format, consider rendering to
/// [ProtoJSON](https://protobuf.dev/programming-guides/json/) using [json.Renderer].
@ModuleInfo { minPklVersion = "0.33.0" }
@Deprecated { since = "0.33.0"; message = "Scheduled for removal without replacement" }
module pkl.protobuf

import "pkl:json"
import "pkl:reflect"

/// A renderer for [Protocol Buffers](https://developers.google.com/protocol-buffers).
Expand Down
Loading